This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]