[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #18 from pinskia at gcc dot gnu dot org 2006-01-27 16:31 --- *** Bug 25997 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||holt-gcc at gholt dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #17 from pinskia at gcc dot gnu dot org 2005-11-21 15:56 --- *** Bug 24967 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||christoph dot pesch at ||siemens dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #15 from reichelt at gcc dot gnu dot org 2005-11-15 19:14 --- Subject: Bug 19253 Author: reichelt Date: Tue Nov 15 19:14:21 2005 New Revision: 107037 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=107037 Log: PR c++/19253 PR c++/22172 Backport from mainline: 2005-11-02 Mark Mitchell [EMAIL PROTECTED] * parser.c (cp_parser_postfix_expression): Use cp_parser_elaborated_type_specifier to handle typename-types in functional casts. (cp_parser_enclosed_argument_list): Skip ahead to the end of the template argument list if the closing is not found. Backport from mainline: 2005-11-02 Mark Mitchell [EMAIL PROTECTED] PR c++/19253 * g++.dg/parse/typename10.C: New test. Backport from mainline: 2005-10-08 James A. Morrison [EMAIL PROTECTED] PR c++/22172 * g++.dg/parse/crash30.C: New test. Added: branches/gcc-3_4-branch/gcc/testsuite/g++.dg/parse/crash30.C branches/gcc-3_4-branch/gcc/testsuite/g++.dg/parse/typename10.C Modified: branches/gcc-3_4-branch/gcc/cp/ChangeLog branches/gcc-3_4-branch/gcc/cp/parser.c branches/gcc-3_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #16 from reichelt at gcc dot gnu dot org 2005-11-15 19:19 --- Now also fixed on the 3.4 branch. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.0.3 |3.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #12 from mmitchel at gcc dot gnu dot org 2005-11-02 21:34 --- Subject: Bug 19253 Author: mmitchel Date: Wed Nov 2 21:34:51 2005 New Revision: 106398 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=106398 Log: PR c++/19253 * parser.c (cp_parser_postfix_expression): Use cp_parser_elaborated_type_specifier to handle typename-types in functional casts. (cp_parser_enclosed_argument_list): Skip ahead to the end of the template argument list if the closing is not found. PR c++/19253 * g++.dg/parse/typename8.C: Compile with -w -fpermissive. * g++.dg/parse/typename9.C: New test. * g++/dg/parse/typename10.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/parse/typename10.C trunk/gcc/testsuite/g++.dg/parse/typename9.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/parse/typename8.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #13 from mmitchel at gcc dot gnu dot org 2005-11-02 21:35 --- Subject: Bug 19253 Author: mmitchel Date: Wed Nov 2 21:35:46 2005 New Revision: 106399 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=106399 Log: PR c++/19253 * parser.c (cp_parser_postfix_expression): Use cp_parser_elaborated_type_specifier to handle typename-types in functional casts. (cp_parser_enclosed_argument_list): Skip ahead to the end of the template argument list if the closing is not found. PR c++/19253 * g++.dg/parse/typename8.C: Compile with -w -fpermissive. * g++.dg/parse/typename9.C: New test. * g++/dg/parse/typename10.C: Likewise. Added: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename10.C branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename9.C Modified: branches/gcc-4_0-branch/gcc/cp/ChangeLog branches/gcc-4_0-branch/gcc/cp/parser.c branches/gcc-4_0-branch/gcc/testsuite/ChangeLog branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename8.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #14 from mmitchel at gcc dot gnu dot org 2005-11-02 21:50 --- Fixed in 4.0.3. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #11 from bangerth at dealii dot org 2005-10-31 16:10 --- (In reply to comment #8) How do you generate all these snippets? By sheer determination. I pick some topic like pointers-to-members or destructors for example and try to find some bugs. Over time you get a good feeling for GCC's weaknesses (templates for example). Well, okay, maybe those code snippets are obnoxious. By the way (should have written this a long time ago): My experience with things like this is that you should probably save all the snippets you create, even if they didn't crash the compiler in any interesting way (i.e. worked just fine). If we ever want to have a comprehensive testsuite, then these are the pieces that you would want in there. Of course, getting the gcc folks to accept a thousand small programs that just test small parts of the language is going to be harder than proposing a single testcase that shows that a particular patch fixed a particular bug, but I think it would be worth while. (For example, if we had had testcases that had stresses static template members in all their aspects, we would have had a dozen or so regression reports less lately... :-) W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Comment #10 from mmitchel at gcc dot gnu dot org 2005-10-31 02:10 --- Leaving as P2; we should try to fix this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
-- What|Removed |Added Target Milestone|4.0.2 |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
-- Bug 19253 depends on bug 18738, which changed state. Bug 18738 Summary: [3.4 Regression] typename not allowed with non-dependent qualified name http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18738 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 21:13 --- Moving to 4.0.2 pre Mark. -- What|Removed |Added Target Milestone|3.4.5 |4.0.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
-- What|Removed |Added Target Milestone|3.4.4 |3.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253