public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition @ 2004-04-30 15:12 reichelt at gcc dot gnu dot org 2004-04-30 15:41 ` [Bug c++/15227] " pinskia at gcc dot gnu dot org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: reichelt at gcc dot gnu dot org @ 2004-04-30 15:12 UTC (permalink / raw) To: gcc-bugs The following testcase (which is invalid, as A::B doesn't exist) causes trouble: ============================================= template<typename> struct A {}; template<typename T> void A<T>::B::foo() {} ============================================= GCC 2.95.3 correctly rejects the code, gcc 3.1 - 3.3.4 wrongly accept it, gcc 3.0.x, 3.4.0 and mainline segfault. -- Summary: [3.3/3.4/3.5 regression] Trouble with invalid function definition Product: gcc Version: 3.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, accepts-invalid Severity: critical Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/15227] [3.3/3.4/3.5 regression] Trouble with invalid function definition 2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org @ 2004-04-30 15:41 ` pinskia at gcc dot gnu dot org 2004-06-06 3:40 ` giovannibajo at libero dot it ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-04-30 15:41 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-30 15:00 ------- Confirmed. Note 3.0.4 ICE after an error message (the same as 2.95.3): tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_0/bin/gcc pr15227.cc pr15227.cc:3: syntax error before `::' token pr15227.cc:3: confused by earlier errors, bailing out -- What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |NEW Ever Confirmed| |1 Known to fail| |3.4.0 3.5.0 3.2.3 3.3.3 Known to work| |2.95.3 Last reconfirmed|0000-00-00 00:00:00 |2004-04-30 15:00:10 date| | Target Milestone|--- |3.3.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/15227] [3.3/3.4/3.5 regression] Trouble with invalid function definition 2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org 2004-04-30 15:41 ` [Bug c++/15227] " pinskia at gcc dot gnu dot org @ 2004-06-06 3:40 ` giovannibajo at libero dot it 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: giovannibajo at libero dot it @ 2004-06-06 3:40 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From giovannibajo at libero dot it 2004-06-06 03:39 ------- Retargeting to 3.4.1, being a regression on that release branch. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |gdr at gcc dot gnu dot org Target Milestone|3.3.4 |3.4.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/15227] [3.3/3.4/3.5 regression] Trouble with invalid function definition 2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org 2004-04-30 15:41 ` [Bug c++/15227] " pinskia at gcc dot gnu dot org 2004-06-06 3:40 ` giovannibajo at libero dot it @ 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2004-06-10 14:27 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-10 14:26 ------- Subject: Bug 15227 CVSROOT: /cvs/gcc Module name: gcc Changes by: mmitchel@gcc.gnu.org 2004-06-10 14:26:23 Modified files: gcc/cp : ChangeLog parser.c pt.c typeck.c Added files: gcc/testsuite/g++.dg/conversion: const1.C reinterpret1.C gcc/testsuite/g++.dg/template: enum2.C error13.C Log message: PR c++/15227 * parser.c (cp_parser_direct_declarator): Robustify. PR c++/15877 * pt.c (tsubst_copy): Use decl_constant_value on enumeration constants in non-dependent contexts. PR c++/14211 PR c++/15076 * typeck.c (build_static_cast): Wrap casts in NON_LVALUE_EXPR when necessary. PR c++/14211 * g++.dg/conversion/const1.C: New test. PR c++/15076 * g++.dg/conversion/reinterpret1.C: New test. PR c++/15877 * g++.dg/template/enum2.C: New test. PR c++/15227 * g++.dg/template/error13.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4089&r2=1.4090 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.202&r2=1.203 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.860&r2=1.861 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.548&r2=1.549 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/const1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/reinterpret1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/enum2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/error13.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/15227] [3.3/3.4/3.5 regression] Trouble with invalid function definition 2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org ` (2 preceding siblings ...) 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org @ 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org 2004-06-10 14:29 ` mmitchel at gcc dot gnu dot org 2004-06-10 14:55 ` pinskia at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2004-06-10 14:27 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-10 14:26 ------- Subject: Bug 15227 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_4-branch Changes by: mmitchel@gcc.gnu.org 2004-06-10 14:26:50 Modified files: gcc/cp : ChangeLog parser.c pt.c typeck.c Added files: gcc/testsuite/g++.dg/conversion: const1.C reinterpret1.C gcc/testsuite/g++.dg/template: enum2.C error13.C Log message: PR c++/15227 * parser.c (cp_parser_direct_declarator): Robustify. PR c++/15877 * pt.c (tsubst_copy): Use decl_constant_value on enumeration constants in non-dependent contexts. PR c++/14211 PR c++/15076 * typeck.c (build_static_cast): Wrap casts in NON_LVALUE_EXPR when necessary. PR c++/14211 * g++.dg/conversion/const1.C: New test. PR c++/15076 * g++.dg/conversion/reinterpret1.C: New test. PR c++/15877 * g++.dg/template/enum2.C: New test. PR c++/15227 * g++.dg/template/error13.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.119&r2=1.3892.2.120 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.32&r2=1.157.2.33 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.29&r2=1.816.2.30 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.519.2.19&r2=1.519.2.20 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/const1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/reinterpret1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/enum2.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/error13.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/15227] [3.3/3.4/3.5 regression] Trouble with invalid function definition 2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org ` (3 preceding siblings ...) 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org @ 2004-06-10 14:29 ` mmitchel at gcc dot gnu dot org 2004-06-10 14:55 ` pinskia at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2004-06-10 14:29 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-06-10 14:29 ------- Fixed in GCC 3.4.1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/15227] [3.3/3.4/3.5 regression] Trouble with invalid function definition 2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org ` (4 preceding siblings ...) 2004-06-10 14:29 ` mmitchel at gcc dot gnu dot org @ 2004-06-10 14:55 ` pinskia at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-06-10 14:55 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-10 14:55 ------- Fixed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-06-10 14:55 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org 2004-04-30 15:41 ` [Bug c++/15227] " pinskia at gcc dot gnu dot org 2004-06-06 3:40 ` giovannibajo at libero dot it 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org 2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org 2004-06-10 14:29 ` mmitchel at gcc dot gnu dot org 2004-06-10 14:55 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).