public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/53305] New: internal crash with variadic templates and decltype @ 2012-05-10 12:17 chesstr at hotmail dot com 2012-05-10 19:56 ` [Bug c++/53305] " daniel.kruegler at googlemail dot com ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: chesstr at hotmail dot com @ 2012-05-10 12:17 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 Bug #: 53305 Summary: internal crash with variadic templates and decltype Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: chesstr@hotmail.com Created attachment 27362 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27362 simplified c++ code that crushes gcc g++ -std=c++0x gcc_bug.cpp -o t gcc_bug.cpp: In member function ‘int funct::operator()(argTs ...)’: gcc_bug.cpp:7:2: error: expected ‘;’ before ‘}’ token gcc_bug.cpp:23: confused by earlier errors, bailing out in the real (and more complex) code, instead the last error message was : internal compiler error: Segmentation fault ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com @ 2012-05-10 19:56 ` daniel.kruegler at googlemail dot com 2012-05-10 22:36 ` paolo.carlini at oracle dot com ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: daniel.kruegler at googlemail dot com @ 2012-05-10 19:56 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-05-10 19:49:27 UTC --- The internal error also occurs in gcc 4.8.0 HEAD. The issue does not describe it clearly, therefore I mention it here: The code is ill-formed. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com 2012-05-10 19:56 ` [Bug c++/53305] " daniel.kruegler at googlemail dot com @ 2012-05-10 22:36 ` paolo.carlini at oracle dot com 2012-05-10 23:42 ` paolo.carlini at oracle dot com ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2012-05-10 22:36 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-05-10 Ever Confirmed|0 |1 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com 2012-05-10 19:56 ` [Bug c++/53305] " daniel.kruegler at googlemail dot com 2012-05-10 22:36 ` paolo.carlini at oracle dot com @ 2012-05-10 23:42 ` paolo.carlini at oracle dot com 2012-05-11 8:25 ` paolo at gcc dot gnu.org ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2012-05-10 23:42 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com Target Milestone|--- |4.8.0 --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-10 23:32:39 UTC --- Mine. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com ` (2 preceding siblings ...) 2012-05-10 23:42 ` paolo.carlini at oracle dot com @ 2012-05-11 8:25 ` paolo at gcc dot gnu.org 2012-05-11 8:29 ` paolo.carlini at oracle dot com ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo at gcc dot gnu.org @ 2012-05-11 8:25 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 --- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-11 08:22:39 UTC --- Author: paolo Date: Fri May 11 08:22:16 2012 New Revision: 187396 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187396 Log: /cp 2012-05-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53305 * pt.c (tsubst_copy: case PARM_DECL): Return error_mark_node if tsubst_decl returns NULL_TREE. * cxx-pretty-print.c (pp_cxx_simple_type_specifier): Handle BOUND_TEMPLATE_TEMPLATE_PARM. /testsuite 2012-05-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53305 * g++.dg/cpp0x/variadic132.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/variadic132.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cxx-pretty-print.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com ` (3 preceding siblings ...) 2012-05-11 8:25 ` paolo at gcc dot gnu.org @ 2012-05-11 8:29 ` paolo.carlini at oracle dot com 2012-06-26 3:43 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2012-05-11 8:29 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-11 08:25:02 UTC --- Fixed for 4.8.0. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com ` (4 preceding siblings ...) 2012-05-11 8:29 ` paolo.carlini at oracle dot com @ 2012-06-26 3:43 ` jason at gcc dot gnu.org 2012-06-26 3:43 ` jason at gcc dot gnu.org 2012-06-26 3:45 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2012-06-26 3:43 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 --- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-26 03:42:44 UTC --- Author: jason Date: Tue Jun 26 03:42:34 2012 New Revision: 188973 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188973 Log: PR c++/53498 PR c++/53305 * pt.c (tsubst_decl) [PARM_DECL]: Don't recurse into DECL_CHAIN if cp_unevaluated_operand is set. (tsubst_copy) [PARM_DECL]: Don't copy before tsubsting. Added: trunk/gcc/testsuite/g++.dg/cpp0x/decltype38.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/variadic132.C --- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-26 03:42:56 UTC --- Author: jason Date: Tue Jun 26 03:42:48 2012 New Revision: 188974 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188974 Log: PR c++/53498 PR c++/53305 * pt.c (tsubst_pack_expansion): Copy before dummy tsubst. Added: branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/decltype38.C branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/variadic132.C Modified: branches/gcc-4_7-branch/gcc/cp/ChangeLog branches/gcc-4_7-branch/gcc/cp/pt.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com ` (5 preceding siblings ...) 2012-06-26 3:43 ` jason at gcc dot gnu.org @ 2012-06-26 3:43 ` jason at gcc dot gnu.org 2012-06-26 3:45 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2012-06-26 3:43 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 --- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-26 03:42:44 UTC --- Author: jason Date: Tue Jun 26 03:42:34 2012 New Revision: 188973 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188973 Log: PR c++/53498 PR c++/53305 * pt.c (tsubst_decl) [PARM_DECL]: Don't recurse into DECL_CHAIN if cp_unevaluated_operand is set. (tsubst_copy) [PARM_DECL]: Don't copy before tsubsting. Added: trunk/gcc/testsuite/g++.dg/cpp0x/decltype38.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/variadic132.C ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53305] internal crash with variadic templates and decltype 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com ` (6 preceding siblings ...) 2012-06-26 3:43 ` jason at gcc dot gnu.org @ 2012-06-26 3:45 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2012-06-26 3:45 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53305 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org Target Milestone|4.8.0 |4.7.2 --- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-26 03:45:19 UTC --- The testcase is now accepted without an error in 4.7.2 and 4.8.0. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-06-26 3:45 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-05-10 12:17 [Bug c++/53305] New: internal crash with variadic templates and decltype chesstr at hotmail dot com 2012-05-10 19:56 ` [Bug c++/53305] " daniel.kruegler at googlemail dot com 2012-05-10 22:36 ` paolo.carlini at oracle dot com 2012-05-10 23:42 ` paolo.carlini at oracle dot com 2012-05-11 8:25 ` paolo at gcc dot gnu.org 2012-05-11 8:29 ` paolo.carlini at oracle dot com 2012-06-26 3:43 ` jason at gcc dot gnu.org 2012-06-26 3:43 ` jason at gcc dot gnu.org 2012-06-26 3:45 ` jason at gcc dot gnu.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).