public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/20157] New: Internal compiler error on invalid code @ 2005-02-23 14:05 sstrasser at systemhaus-gruppe dot de 2005-02-23 15:43 ` [Bug c++/20157] [4.0 Regression] " pinskia at gcc dot gnu dot org ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: sstrasser at systemhaus-gruppe dot de @ 2005-02-23 14:05 UTC (permalink / raw) To: gcc-bugs 4.0.0 outputs internal compiler error on the following invalid code. 3.3/3.4 silently ignores it. if the invalid template function specialization is a definition 3.3/3.4 correctly reports it, 4.0.0 still outputs an internal compiler error. template<typename AT> struct A{ template<typename T> void function(T); }; template<> template<typename ABC,typename DEF> void A<int>::function(ABC); -- Summary: Internal compiler error on invalid code Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sstrasser at systemhaus-gruppe dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de @ 2005-02-23 15:43 ` pinskia at gcc dot gnu dot org 2005-02-24 15:55 ` reichelt at gcc dot gnu dot org ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-02-23 15:43 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-23 12:26 ------- Confirmed -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |ice-on-invalid-code Known to fail| |4.0.0 Last reconfirmed|0000-00-00 00:00:00 |2005-02-23 12:26:17 date| | Summary|Internal compiler error on |[4.0 Regression] Internal |invalid code |compiler error on invalid | |code Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de 2005-02-23 15:43 ` [Bug c++/20157] [4.0 Regression] " pinskia at gcc dot gnu dot org @ 2005-02-24 15:55 ` reichelt at gcc dot gnu dot org 2005-02-24 17:11 ` sstrasser at systemhaus-gruppe dot de ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-02-24 15:55 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-02-24 12:27 ------- Hmm. I don't know whether this is really a regression. We never treated this code correctly. We have an ICE in 2.95.x and mainline. In 3.0 - 3.4.4 we accept the code where we shouldn't. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Keywords| |monitored http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de 2005-02-23 15:43 ` [Bug c++/20157] [4.0 Regression] " pinskia at gcc dot gnu dot org 2005-02-24 15:55 ` reichelt at gcc dot gnu dot org @ 2005-02-24 17:11 ` sstrasser at systemhaus-gruppe dot de 2005-02-24 17:17 ` pinskia at gcc dot gnu dot org ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: sstrasser at systemhaus-gruppe dot de @ 2005-02-24 17:11 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From sstrasser at systemhaus-gruppe dot de 2005-02-24 14:24 ------- (In reply to comment #2) I think it is a minor regression. 3.3/3.4 treats the code correctly if the specialization(unlike above) is a definition. 4.0 does not. no regression with exactly this testcase though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de ` (2 preceding siblings ...) 2005-02-24 17:11 ` sstrasser at systemhaus-gruppe dot de @ 2005-02-24 17:17 ` pinskia at gcc dot gnu dot org 2005-03-11 6:19 ` [Bug c++/20157] [4.0/4.1 " mmitchel at gcc dot gnu dot org ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-02-24 17:17 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-24 14:28 ------- (In reply to comment #3) > (In reply to comment #2) And any ICE is a regression even if it was changed from accepts invalid code. There was a discussion about this before already. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0/4.1 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de ` (3 preceding siblings ...) 2005-02-24 17:17 ` pinskia at gcc dot gnu dot org @ 2005-03-11 6:19 ` mmitchel at gcc dot gnu dot org 2005-03-14 3:54 ` cvs-commit at gcc dot gnu dot org ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-03-11 6:19 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0/4.1 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de ` (4 preceding siblings ...) 2005-03-11 6:19 ` [Bug c++/20157] [4.0/4.1 " mmitchel at gcc dot gnu dot org @ 2005-03-14 3:54 ` cvs-commit at gcc dot gnu dot org 2005-03-14 3:59 ` cvs-commit at gcc dot gnu dot org 2005-03-14 4:02 ` mmitchel at gcc dot gnu dot org 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-03-14 3:54 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-14 03:54 ------- Subject: Bug 20157 CVSROOT: /cvs/gcc Module name: gcc Changes by: mmitchel@gcc.gnu.org 2005-03-14 03:54:21 Modified files: gcc/cp : ChangeLog pt.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: error18.C Log message: PR c++/20157 * pt.c (determine_specialization): Reject non-specializations. PR c++/20157 * g++.dg/template/error18.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4660&r2=1.4661 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.981&r2=1.982 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5159&r2=1.5160 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/error18.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0/4.1 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de ` (5 preceding siblings ...) 2005-03-14 3:54 ` cvs-commit at gcc dot gnu dot org @ 2005-03-14 3:59 ` cvs-commit at gcc dot gnu dot org 2005-03-14 4:02 ` mmitchel at gcc dot gnu dot org 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-03-14 3:59 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-14 03:59 ------- Subject: Bug 20157 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-4_0-branch Changes by: mmitchel@gcc.gnu.org 2005-03-14 03:58:55 Modified files: gcc/cp : ChangeLog pt.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/template: error18.C Log message: PR c++/20157 * pt.c (determine_specialization): Reject non-specializations. PR c++/20157 * g++.dg/template/error18.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.9&r2=1.4648.2.10 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.978.2.3&r2=1.978.2.4 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.41&r2=1.5084.2.42 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/error18.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20157] [4.0/4.1 Regression] Internal compiler error on invalid code 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de ` (6 preceding siblings ...) 2005-03-14 3:59 ` cvs-commit at gcc dot gnu dot org @ 2005-03-14 4:02 ` mmitchel at gcc dot gnu dot org 7 siblings, 0 replies; 9+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-03-14 4:02 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-03-14 04:02 ------- Fixed in 4.0. -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157 ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-03-14 4:02 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-02-23 14:05 [Bug c++/20157] New: Internal compiler error on invalid code sstrasser at systemhaus-gruppe dot de 2005-02-23 15:43 ` [Bug c++/20157] [4.0 Regression] " pinskia at gcc dot gnu dot org 2005-02-24 15:55 ` reichelt at gcc dot gnu dot org 2005-02-24 17:11 ` sstrasser at systemhaus-gruppe dot de 2005-02-24 17:17 ` pinskia at gcc dot gnu dot org 2005-03-11 6:19 ` [Bug c++/20157] [4.0/4.1 " mmitchel at gcc dot gnu dot org 2005-03-14 3:54 ` cvs-commit at gcc dot gnu dot org 2005-03-14 3:59 ` cvs-commit at gcc dot gnu dot org 2005-03-14 4:02 ` mmitchel 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).