public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack
@ 2007-09-19 7:04 reichelt at gcc dot gnu dot org
2007-09-19 7:04 ` [Bug c++/33496] " reichelt at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-09-19 7:04 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
==============================================
template<int... N> void foo()
{
sizeof...N();
}
void bar()
{
foo<0>();
}
==============================================
bug1.cc: In function 'void foo()':
bug1.cc:3: error: 'N' cannot be used as a function
bug1.cc: In function 'void foo() [with int N = #'argument_pack_select' not
supported by dump_expr#<expression error>]':
bug1.cc:8: instantiated from here
bug1.cc:3: error: '0' cannot be used as a function
bug1.cc:3: internal compiler error: tree check: expected tree_vec, have
error_mark in tsubst_copy_and_build, at cp/pt.c:10528
Please submit a full bug report, [etc.]
The broken diagnostic "'argument_pack_select' not supported by dump_expr"
is already tracked in PR33118.
--
Summary: [4.3 regression] ICE with sizeof for invalid argument
pack
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33496
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/33496] [4.3 regression] ICE with sizeof for invalid argument pack
2007-09-19 7:04 [Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack reichelt at gcc dot gnu dot org
@ 2007-09-19 7:04 ` reichelt at gcc dot gnu dot org
2007-09-20 10:38 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-09-19 7:04 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33496
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/33496] [4.3 regression] ICE with sizeof for invalid argument pack
2007-09-19 7:04 [Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack reichelt at gcc dot gnu dot org
2007-09-19 7:04 ` [Bug c++/33496] " reichelt at gcc dot gnu dot org
@ 2007-09-20 10:38 ` jakub at gcc dot gnu dot org
2007-09-20 21:21 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-20 10:38 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-09-20 10:38:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33496
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/33496] [4.3 regression] ICE with sizeof for invalid argument pack
2007-09-19 7:04 [Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack reichelt at gcc dot gnu dot org
2007-09-19 7:04 ` [Bug c++/33496] " reichelt at gcc dot gnu dot org
2007-09-20 10:38 ` jakub at gcc dot gnu dot org
@ 2007-09-20 21:21 ` jakub at gcc dot gnu dot org
2007-09-21 9:51 ` jakub at gcc dot gnu dot org
2007-09-22 21:19 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-20 21:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2007-09-20 21:21 -------
Subject: Bug 33496
Author: jakub
Date: Thu Sep 20 21:21:03 2007
New Revision: 128630
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128630
Log:
PR c++/33496
* pt.c (tsubst_copy) <case SIZEOF_EXPR>: Handle error_mark_node
returned from tsubst_pack_expansion.
(tsubst_copy_and_build) <case SIZEOF_EXPR>: Likewise.
(tsubst_copy_and_build) <case CONSTRUCTOR>: Likewise.
* g++.dg/cpp0x/variadic76.C: New test.
* g++.dg/cpp0x/variadic77.C: New test.
* g++.dg/cpp0x/variadic78.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic76.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic77.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic78.C
Modified:
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33496
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/33496] [4.3 regression] ICE with sizeof for invalid argument pack
2007-09-19 7:04 [Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-09-20 21:21 ` jakub at gcc dot gnu dot org
@ 2007-09-21 9:51 ` jakub at gcc dot gnu dot org
2007-09-22 21:19 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-21 9:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2007-09-21 09:51 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33496
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/33496] [4.3 regression] ICE with sizeof for invalid argument pack
2007-09-19 7:04 [Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-09-21 9:51 ` jakub at gcc dot gnu dot org
@ 2007-09-22 21:19 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-22 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2007-09-22 21:19 -------
Subject: Bug 33496
Author: jakub
Date: Sat Sep 22 21:19:17 2007
New Revision: 128675
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128675
Log:
PR c++/33496
* pt.c (tsubst_copy) <case SIZEOF_EXPR>: Handle error_mark_node
returned from tsubst_pack_expansion.
(tsubst_copy_and_build) <case SIZEOF_EXPR>: Likewise.
(tsubst_copy_and_build) <case CONSTRUCTOR>: Likewise.
* g++.dg/cpp0x/variadic76.C: New test.
* g++.dg/cpp0x/variadic77.C: New test.
* g++.dg/cpp0x/variadic78.C: New test.
Modified:
trunk/gcc/cp/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33496
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-22 21:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-19 7:04 [Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack reichelt at gcc dot gnu dot org
2007-09-19 7:04 ` [Bug c++/33496] " reichelt at gcc dot gnu dot org
2007-09-20 10:38 ` jakub at gcc dot gnu dot org
2007-09-20 21:21 ` jakub at gcc dot gnu dot org
2007-09-21 9:51 ` jakub at gcc dot gnu dot org
2007-09-22 21:19 ` jakub 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).