http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.27 22:55:58
   Target Milestone|---                         |4.5.2
            Summary|gcc crashes with lvalue     |[4.5/4.6 Regression] gcc
                   |error on the following Code |crashes with lvalue error
                   |                            |on the following Code
     Ever Confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-27 
22:55:58 UTC ---
<<< Unknown tree: scope_ref
  struct StringLiterals
  dec >>>


StringLiterals is not dependent so the scope_ref should have been resolved.

4.3.2 gave:
t.cc:12: error: ‘StringLiterals::dec’ cannot appear in a constant-expression
t.cc:12: error: template argument 3 is invalid


But I think that is incorrect as that is a static field.

Note 4.5.0 20100401 (experimental) [trunk revision 157933]  accepted the code
though.

Reply via email to