public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/23694] New: [4.0/4.1 Regression] ICE after error about extern "C". @ 2005-09-02 12:24 pinskia at gcc dot gnu dot org 2005-09-02 12:25 ` [Bug c++/23694] " pinskia at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-02 12:24 UTC (permalink / raw) To: gcc-bugs Testcase: extern "C" class c1 { friend inline bool operator==(c1 const & a, c1 const & b){} friend inline bool operator==(c2 const & a, c2 const & b){} } --- This worked in 3.4.0. -- Summary: [4.0/4.1 Regression] ICE after error about extern "C". Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/23694] [4.0/4.1 Regression] ICE after error about extern "C". 2005-09-02 12:24 [Bug c++/23694] New: [4.0/4.1 Regression] ICE after error about extern "C" pinskia at gcc dot gnu dot org @ 2005-09-02 12:25 ` pinskia at gcc dot gnu dot org 2005-09-05 11:40 ` [Bug c++/23694] [3.4/4.0/4.1 " reichelt at gcc dot gnu dot org 2005-09-27 15:56 ` mmitchel at gcc dot gnu dot org 2 siblings, 0 replies; 9+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-02 12:25 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C". 2005-09-02 12:24 [Bug c++/23694] New: [4.0/4.1 Regression] ICE after error about extern "C" pinskia at gcc dot gnu dot org 2005-09-02 12:25 ` [Bug c++/23694] " pinskia at gcc dot gnu dot org @ 2005-09-05 11:40 ` reichelt at gcc dot gnu dot org 2005-09-27 15:56 ` mmitchel at gcc dot gnu dot org 2 siblings, 0 replies; 9+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-09-05 11:40 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-09-05 11:40 ------- Confirmed. Here's a shorter testcase which even crashes gcc 3.4.0 (works with GCC 3.3.6 and earlier): =========================== extern "C" struct A { friend void foo(int) {} friend void foo() {} }; =========================== bug.cc:4: error: declaration of C function 'void foo()' conflicts with bug.cc:3: error: previous declaration 'void foo(int)' here bug.cc:4: warning: 'void foo()' is already a friend of class 'A' bug.cc:4: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] -- What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |monitored Last reconfirmed|0000-00-00 00:00:00 |2005-09-05 11:40:29 date| | Summary|[4.0/4.1 Regression] ICE |[3.4/4.0/4.1 Regression] ICE |after error about extern |after error about extern |"C". |"C". http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C". 2005-09-02 12:24 [Bug c++/23694] New: [4.0/4.1 Regression] ICE after error about extern "C" pinskia at gcc dot gnu dot org 2005-09-02 12:25 ` [Bug c++/23694] " pinskia at gcc dot gnu dot org 2005-09-05 11:40 ` [Bug c++/23694] [3.4/4.0/4.1 " reichelt at gcc dot gnu dot org @ 2005-09-27 15:56 ` mmitchel at gcc dot gnu dot org 2 siblings, 0 replies; 9+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-09-27 15:56 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.2 |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <bug-23694-6528@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C". [not found] <bug-23694-6528@http.gcc.gnu.org/bugzilla/> @ 2005-10-13 5:55 ` mmitchel at gcc dot gnu dot org 2005-10-13 8:36 ` cvs-commit at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 9+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-10-13 5:55 UTC (permalink / raw) To: gcc-bugs -- mmitchel at gcc dot gnu dot org changed: 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=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C". [not found] <bug-23694-6528@http.gcc.gnu.org/bugzilla/> 2005-10-13 5:55 ` mmitchel at gcc dot gnu dot org @ 2005-10-13 8:36 ` cvs-commit at gcc dot gnu dot org 2005-10-13 8:38 ` cvs-commit at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-10-13 8:36 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from cvs-commit at gcc dot gnu dot org 2005-10-13 08:36 ------- Subject: Bug 23694 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-4_0-branch Changes by: mmitchel@gcc.gnu.org 2005-10-13 08:36:38 Modified files: gcc/cp : call.c decl.c pt.c semantics.c ChangeLog gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/parse: friend5.C gcc/testsuite/g++.dg/template: crash38.C crash39.C crash40.C crash41.C friend38.C Log message: PR c++/22464 * semantics.c (finish_id_expression): Issue errors about uses of local variables in containing functions even in templates. PR c++/22180 * call.c (build_new_method_call): Correct pretty-printing of destructor names. * pt.c (tsubst_qualified_id): Recognize invalid uses of "~T" as an identifier. PR c++/23694 * decl.c (start_method): Return error_mark_node for errors. PR c++/23307 * pt.c (push_template_decl_real): Complain about attempts to declare template variables. PR c++/22352 * pt.c (tsubst_template_parms): Set processing_template_decl while processing the parameters. (tsubst_decl): Set processing_template_decl when substituting into a TEMPLATE_DECL. PR c++/22405 * pt.c (most_specialized_instantiation): Robustify. PR c++/22464 * g++.dg/template/crash/41.C: New test. PR c++/22180 * g++.dg/template/crash40.C: New test. PR c++/23694 * g++.dg/parse/friend5.C: New test. PR c++/23307 * g++.dg/template/crash38.C: New test. PR c++/22352 * g++.dg/template/friend38.C: New test. PR c++/22405 * g++.dg/template/crash39.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.531.2.11&r2=1.531.2.12 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1371.2.25&r2=1.1371.2.26 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.31&r2=1.978.2.32 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.463.2.11&r2=1.463.2.12 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.129&r2=1.4648.2.130 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/friend5.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash38.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash39.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash40.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash41.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/friend38.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 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.451&r2=1.5084.2.452 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C". [not found] <bug-23694-6528@http.gcc.gnu.org/bugzilla/> 2005-10-13 5:55 ` mmitchel at gcc dot gnu dot org 2005-10-13 8:36 ` cvs-commit at gcc dot gnu dot org @ 2005-10-13 8:38 ` cvs-commit at gcc dot gnu dot org 2005-10-13 8:39 ` mmitchel at gcc dot gnu dot org 2005-10-13 13:15 ` nathan at gcc dot gnu dot org 4 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-10-13 8:38 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from cvs-commit at gcc dot gnu dot org 2005-10-13 08:38 ------- Subject: Bug 23694 CVSROOT: /cvs/gcc Module name: gcc Changes by: mmitchel@gcc.gnu.org 2005-10-13 08:38:41 Modified files: gcc/cp : call.c decl.c pt.c semantics.c ChangeLog gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/parse: friend5.C gcc/testsuite/g++.dg/template: crash38.C crash39.C crash40.C crash41.C friend38.C Log message: PR c++/22464 * semantics.c (finish_id_expression): Issue errors about uses of local variables in containing functions even in templates. PR c++/22180 * call.c (build_new_method_call): Correct pretty-printing of destructor names. * pt.c (tsubst_qualified_id): Recognize invalid uses of "~T" as an identifier. PR c++/23694 * decl.c (start_method): Return error_mark_node for errors. PR c++/23307 * pt.c (push_template_decl_real): Complain about attempts to declare template variables. PR c++/22352 * pt.c (tsubst_template_parms): Set processing_template_decl while processing the parameters. (tsubst_decl): Set processing_template_decl when substituting into a TEMPLATE_DECL. PR c++/22405 * pt.c (most_specialized_instantiation): Robustify. PR c++/22464 * g++.dg/template/crash/41.C: New test. PR c++/22180 * g++.dg/template/crash40.C: New test. PR c++/23694 * g++.dg/parse/friend5.C: New test. PR c++/23307 * g++.dg/template/crash38.C: New test. PR c++/22352 * g++.dg/template/friend38.C: New test. PR c++/22405 * g++.dg/template/crash39.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.557&r2=1.558 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1432&r2=1.1433 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.1045&r2=1.1046 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.491&r2=1.492 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4928&r2=1.4929 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/friend5.C.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash38.C.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash39.C.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash40.C.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash41.C.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/friend38.C.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6186&r2=1.6187 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C". [not found] <bug-23694-6528@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2005-10-13 8:38 ` cvs-commit at gcc dot gnu dot org @ 2005-10-13 8:39 ` mmitchel at gcc dot gnu dot org 2005-10-13 13:15 ` nathan at gcc dot gnu dot org 4 siblings, 0 replies; 9+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-10-13 8:39 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from mmitchel at gcc dot gnu dot org 2005-10-13 08:39 ------- 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=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C". [not found] <bug-23694-6528@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 2005-10-13 8:39 ` mmitchel at gcc dot gnu dot org @ 2005-10-13 13:15 ` nathan at gcc dot gnu dot org 4 siblings, 0 replies; 9+ messages in thread From: nathan at gcc dot gnu dot org @ 2005-10-13 13:15 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from nathan at gcc dot gnu dot org 2005-10-13 13:15 ------- wont fix for 3.4 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694 ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-10-13 13:15 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-09-02 12:24 [Bug c++/23694] New: [4.0/4.1 Regression] ICE after error about extern "C" pinskia at gcc dot gnu dot org 2005-09-02 12:25 ` [Bug c++/23694] " pinskia at gcc dot gnu dot org 2005-09-05 11:40 ` [Bug c++/23694] [3.4/4.0/4.1 " reichelt at gcc dot gnu dot org 2005-09-27 15:56 ` mmitchel at gcc dot gnu dot org [not found] <bug-23694-6528@http.gcc.gnu.org/bugzilla/> 2005-10-13 5:55 ` mmitchel at gcc dot gnu dot org 2005-10-13 8:36 ` cvs-commit at gcc dot gnu dot org 2005-10-13 8:38 ` cvs-commit at gcc dot gnu dot org 2005-10-13 8:39 ` mmitchel at gcc dot gnu dot org 2005-10-13 13:15 ` nathan 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).