[Bug c++/17585] g++ generates errors on a legal code.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 21 14:56:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-21 14:56 -------
Doing 03<(&f)> s03; or 03<f> s03; instead I get:
t.cc:6: error: `static void C03::f()' cannot appear in a constant-expression
t.cc:6: error: `&' cannot appear in a constant-expression
t.cc:6: error: template argument 1 is invalid
t.cc:6: error: invalid type in declaration before ';' token

So this is actually invalid code.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list