public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51243] New: internal compiler error: in verify_gimple_stmt, at tree-cfg.c:4235
@ 2011-11-20 20:27 3dw4rd at verizon dot net
2011-11-29 22:58 ` [Bug c++/51243] " reichelt at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: 3dw4rd at verizon dot net @ 2011-11-20 20:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51243
Bug #: 51243
Summary: internal compiler error: in verify_gimple_stmt, at
tree-cfg.c:4235
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: 3dw4rd@verizon.net
The following code ICES on 4.7 (not on anything earlier).
------------------------------------------------------------------------
// g++ -std=c++0x -c stringarray.cpp
// ./bin/bin/g++ -std=c++11 -c stringarray.cpp
#include <string>
#include <array>
std::array<std::string, 2> strings1 = { "a", "b" };
std::array<std::string, 2> strings2 = {{ "a", "b" }};
//std::array<std::string, 2> strings3({ "a", "b" });
------------------------------------------------------------------------
If the last line is uncommented, it gets an error about "no matching function
for call" as it should. No ICE.
Interestingly if the second declaration is commented the first declaration
ICES.
Maybe that is not surprising as this is code generation. I think syntactically
the first two decls are legal. If the third one is uncommented you get an
error and no ICE. If the third is commented either or both of the first two
decls pass but crash on gimplification.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/51243] internal compiler error: in verify_gimple_stmt, at tree-cfg.c:4235
2011-11-20 20:27 [Bug c++/51243] New: internal compiler error: in verify_gimple_stmt, at tree-cfg.c:4235 3dw4rd at verizon dot net
@ 2011-11-29 22:58 ` reichelt at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-29 22:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51243
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |reichelt at gcc dot gnu.org
Resolution| |DUPLICATE
--- Comment #1 from Volker Reichelt <reichelt at gcc dot gnu.org> 2011-11-29 22:42:10 UTC ---
Looks like a duplicate of PR51009 to me.
*** This bug has been marked as a duplicate of bug 51009 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-29 22:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-20 20:27 [Bug c++/51243] New: internal compiler error: in verify_gimple_stmt, at tree-cfg.c:4235 3dw4rd at verizon dot net
2011-11-29 22:58 ` [Bug c++/51243] " reichelt 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).