public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52951] New: internal compiler error with c++11 initializer lists and C arrays
@ 2012-04-12 20:47 drwowe at yahoo dot com
  2012-04-12 21:32 ` [Bug c++/52951] " jason at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: drwowe at yahoo dot com @ 2012-04-12 20:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52951

             Bug #: 52951
           Summary: internal compiler error with c++11 initializer lists
                    and C arrays
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: drwowe@yahoo.com


Created attachment 27146
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27146
preprocessed source

The following trivial snippet produces "internal compiler error: Segmentation
fault".  Tested with 4.7.0 and 4.6.3 on two different architectures.

g++-4.7 -c -std=c++11 test.cc

---- test.cc:
#include <utility>
std::pair<int, int[1]> foo = {1, {2} };
----



g++-4.7 -v
Using built-in specs.
COLLECT_GCC=g++-4.7
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-languages=c,c++ --program-suffix=-4.7
Thread model: posix
gcc version 4.7.0 (GCC)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/52951] internal compiler error with c++11 initializer lists and C arrays
  2012-04-12 20:47 [Bug c++/52951] New: internal compiler error with c++11 initializer lists and C arrays drwowe at yahoo dot com
@ 2012-04-12 21:32 ` jason at gcc dot gnu.org
  2012-04-13 16:22 ` drwowe at yahoo dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-12 21:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52951

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-04-12
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-12 21:32:00 UTC ---
This seems to be fixed already for 4.7.1.  Now the compiler says,

.../libstdc++-v3/include/bits/stl_pair.h:132:45: error: array used as
initializer

when the pair constructor tries to initialize one array from another.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/52951] internal compiler error with c++11 initializer lists and C arrays
  2012-04-12 20:47 [Bug c++/52951] New: internal compiler error with c++11 initializer lists and C arrays drwowe at yahoo dot com
  2012-04-12 21:32 ` [Bug c++/52951] " jason at gcc dot gnu.org
@ 2012-04-13 16:22 ` drwowe at yahoo dot com
  2012-04-13 18:22 ` drwowe at yahoo dot com
  2012-04-13 18:24 ` drwowe at yahoo dot com
  3 siblings, 0 replies; 5+ messages in thread
From: drwowe at yahoo dot com @ 2012-04-13 16:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52951

--- Comment #2 from D W <drwowe at yahoo dot com> 2012-04-13 16:22:28 UTC ---
I built gcc from gcc-4_7-branch, svn186417.  I can confirm it does not segfault
on my example.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/52951] internal compiler error with c++11 initializer lists and C arrays
  2012-04-12 20:47 [Bug c++/52951] New: internal compiler error with c++11 initializer lists and C arrays drwowe at yahoo dot com
  2012-04-12 21:32 ` [Bug c++/52951] " jason at gcc dot gnu.org
  2012-04-13 16:22 ` drwowe at yahoo dot com
@ 2012-04-13 18:22 ` drwowe at yahoo dot com
  2012-04-13 18:24 ` drwowe at yahoo dot com
  3 siblings, 0 replies; 5+ messages in thread
From: drwowe at yahoo dot com @ 2012-04-13 18:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52951

--- Comment #3 from D W <drwowe at yahoo dot com> 2012-04-13 18:22:29 UTC ---
After a little more investigation it turns out this was fixed by the fix to bug
52743.  So I guess this is actually a dup.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/52951] internal compiler error with c++11 initializer lists and C arrays
  2012-04-12 20:47 [Bug c++/52951] New: internal compiler error with c++11 initializer lists and C arrays drwowe at yahoo dot com
                   ` (2 preceding siblings ...)
  2012-04-13 18:22 ` drwowe at yahoo dot com
@ 2012-04-13 18:24 ` drwowe at yahoo dot com
  3 siblings, 0 replies; 5+ messages in thread
From: drwowe at yahoo dot com @ 2012-04-13 18:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52951

D W <drwowe at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #4 from D W <drwowe at yahoo dot com> 2012-04-13 18:23:19 UTC ---


*** This bug has been marked as a duplicate of bug 52743 ***


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-13 18:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 20:47 [Bug c++/52951] New: internal compiler error with c++11 initializer lists and C arrays drwowe at yahoo dot com
2012-04-12 21:32 ` [Bug c++/52951] " jason at gcc dot gnu.org
2012-04-13 16:22 ` drwowe at yahoo dot com
2012-04-13 18:22 ` drwowe at yahoo dot com
2012-04-13 18:24 ` drwowe at yahoo dot com

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).