public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/39742] New: ice in C++ overload resolution @ 2009-04-12 11:43 dcb314 at hotmail dot com 2009-04-12 15:41 ` [Bug c++/39742] " hjl dot tools at gmail dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: dcb314 at hotmail dot com @ 2009-04-12 11:43 UTC (permalink / raw) To: gcc-bugs I just tried to compile the following code void f( int, ...); struct S { }; void g() { void f( int, ...); S t; f( 1, t); } void f( int i, ...) { } with GNU C compiler version 4.5 snapshot 20090409 and the compiler said jul17c.cc: In function 'void g()': jul17c.cc:15: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. This C++ source code used to work with the 20090402 snapshot. Here is valgrind helping out with a stack backtrace Invalid read of size 8 ==15025== at 0x40791E: joust (call.c:6802) ==15025== by 0x4080DA: tourney (call.c:6896) ==15025== by 0x40BCF3: perform_overload_resolution (call.c:2979) ==15025== by 0x416AE5: build_new_function_call (call.c:3019) ==15025== by 0x50B4EF: finish_call_expr (semantics.c:1994) ==15025== by 0x4BBEB3: cp_parser_postfix_expression (parser.c:4825) ==15025== by 0x4BC7B3: cp_parser_unary_expression (parser.c:5577) ==15025== by 0x4BD08C: cp_parser_binary_expression (parser.c:6233) ==15025== by 0x4BD473: cp_parser_assignment_expression (parser.c:6421) ==15025== by 0x4BD89F: cp_parser_expression (parser.c:6566) ==15025== by 0x4BDC33: cp_parser_expression_statement (parser.c:7129) ==15025== by 0x4B684A: cp_parser_statement (parser.c:7019) ==15025== Address 0x10 is not stack'd, malloc'd or (recently) free'd -- Summary: ice in C++ overload resolution Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dcb314 at hotmail dot com GCC host triplet: x86_64-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39742 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/39742] ice in C++ overload resolution 2009-04-12 11:43 [Bug c++/39742] New: ice in C++ overload resolution dcb314 at hotmail dot com @ 2009-04-12 15:41 ` hjl dot tools at gmail dot com 2009-04-12 16:15 ` [Bug c++/39742] [4.5 Regression] " jason at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: hjl dot tools at gmail dot com @ 2009-04-12 15:41 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from hjl dot tools at gmail dot com 2009-04-12 15:41 ------- This is caused by revision 145709: http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg00331.html -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-04-12 15:41:12 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39742 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/39742] [4.5 Regression] ice in C++ overload resolution 2009-04-12 11:43 [Bug c++/39742] New: ice in C++ overload resolution dcb314 at hotmail dot com 2009-04-12 15:41 ` [Bug c++/39742] " hjl dot tools at gmail dot com @ 2009-04-12 16:15 ` jason at gcc dot gnu dot org 2009-04-13 4:05 ` jason at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu dot org @ 2009-04-12 16:15 UTC (permalink / raw) To: gcc-bugs -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2009-04-12 15:41:12 |2009-04-12 16:15:09 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39742 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/39742] [4.5 Regression] ice in C++ overload resolution 2009-04-12 11:43 [Bug c++/39742] New: ice in C++ overload resolution dcb314 at hotmail dot com 2009-04-12 15:41 ` [Bug c++/39742] " hjl dot tools at gmail dot com 2009-04-12 16:15 ` [Bug c++/39742] [4.5 Regression] " jason at gcc dot gnu dot org @ 2009-04-13 4:05 ` jason at gcc dot gnu dot org 2009-04-13 4:21 ` jason at gcc dot gnu dot org 2009-04-13 4:28 ` jason at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu dot org @ 2009-04-13 4:05 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from jason at gcc dot gnu dot org 2009-04-13 04:05 ------- Subject: Bug 39742 Author: jason Date: Mon Apr 13 04:04:58 2009 New Revision: 145994 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145994 Log: PR c++/39742 * call.c (joust): Don't crash on variadic fn. Added: trunk/gcc/testsuite/g++.dg/overload/extern-C-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39742 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/39742] [4.5 Regression] ice in C++ overload resolution 2009-04-12 11:43 [Bug c++/39742] New: ice in C++ overload resolution dcb314 at hotmail dot com ` (2 preceding siblings ...) 2009-04-13 4:05 ` jason at gcc dot gnu dot org @ 2009-04-13 4:21 ` jason at gcc dot gnu dot org 2009-04-13 4:28 ` jason at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu dot org @ 2009-04-13 4:21 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from jason at gcc dot gnu dot org 2009-04-13 04:20 ------- Subject: Bug 39742 Author: jason Date: Mon Apr 13 04:20:32 2009 New Revision: 145995 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145995 Log: PR c++/39742 * call.c (joust): Don't crash on variadic fn. Added: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/overload/extern-C-2.C - copied unchanged from r145994, trunk/gcc/testsuite/g++.dg/overload/extern-C-2.C Modified: branches/gcc-4_4-branch/gcc/cp/ChangeLog branches/gcc-4_4-branch/gcc/cp/call.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39742 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/39742] [4.5 Regression] ice in C++ overload resolution 2009-04-12 11:43 [Bug c++/39742] New: ice in C++ overload resolution dcb314 at hotmail dot com ` (3 preceding siblings ...) 2009-04-13 4:21 ` jason at gcc dot gnu dot org @ 2009-04-13 4:28 ` jason at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu dot org @ 2009-04-13 4:28 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from jason at gcc dot gnu dot org 2009-04-13 04:28 ------- Fixed. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39742 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-04-13 4:28 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-04-12 11:43 [Bug c++/39742] New: ice in C++ overload resolution dcb314 at hotmail dot com 2009-04-12 15:41 ` [Bug c++/39742] " hjl dot tools at gmail dot com 2009-04-12 16:15 ` [Bug c++/39742] [4.5 Regression] " jason at gcc dot gnu dot org 2009-04-13 4:05 ` jason at gcc dot gnu dot org 2009-04-13 4:21 ` jason at gcc dot gnu dot org 2009-04-13 4:28 ` jason 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).