[Bug c++/17194] Some combined features of the C++ lenguage plus a mistake make g++ do a segmentation fault.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 25 23:38:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-25 23:38 -------
Fixed in 3.4.0 most likely by the parser.
Note the code is invalid (without the template):
gcc pr17194.cc
pr17194.cc:10: error: `int function1()' cannot appear in a constant-expression
pr17194.cc:10: error: a function call cannot appear in a constant-expression

With the template part:
pr17194.cc:10: error: `int function1()' cannot appear in a constant-expression
pr17194.cc:10: error: a function call cannot appear in a constant-expression
pr17194.cc:19: error: too few template-parameter-lists

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |ice-on-invalid-code
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


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



More information about the Gcc-bugs mailing list