This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17194] Some combined features of the C++ lenguage plus a mistake make g++ do a segmentation fault.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2004 23:38:55 -0000
- Subject: [Bug c++/17194] Some combined features of the C++ lenguage plus a mistake make g++ do a segmentation fault.
- References: <20040825233227.17194.staube@t2.technion.ac.il>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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