Revert:
2005-05-01 Mark Mitchell <mark@codesourcery.com>
* typeck.c (unary_complex_lvalue): In a template, always refuse
simplifications.
PR c++/15875
* g++.dg/template/ptrmem14.C: New test.
From-SVN: r99117
+2005-05-02 Mark Mitchell <mark@codesourcery.com>
+
+ Revert:
+ 2005-05-01 Mark Mitchell <mark@codesourcery.com>
+ * typeck.c (unary_complex_lvalue): In a template, always refuse
+ simplifications.
+
2005-05-01 Mark Mitchell <mark@codesourcery.com>
Backport:
tree
unary_complex_lvalue (enum tree_code code, tree arg)
{
- /* Inside a template, making these kinds of adjustments is
- pointless; we are only concerned with the type of the
- expression. */
- if (processing_template_decl)
- return NULL_TREE;
-
/* Handle (a, b) used as an "lvalue". */
if (TREE_CODE (arg) == COMPOUND_EXPR)
{
+2005-05-02 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/15875
+ * g++.dg/template/ptrmem14.C: New test.
+
2005-05-01 Mark Mitchell <mark@codesourcery.com>
Backport: