public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56545] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790
@ 2013-03-05 18:31 ericmartinchristiansen at gmail dot com
  2013-03-05 18:42 ` [Bug c++/56545] " ericmartinchristiansen at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ericmartinchristiansen at gmail dot com @ 2013-03-05 18:31 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56545
           Summary: internal compiler error: in
                    build_data_member_initialization, at
                    cp/semantics.c:5790
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ericmartinchristiansen@gmail.com


What happened: I attempted to compile and got this message:

"""
echristiansen@jnu:/wg/stor6_home3/echristiansen/DropboxDontUse/Dropbox/t/2013_q1/salve/build$
make -j12
[ 12%] Built target gtest
[ 25%] Built target gtest_main
[ 37%] Building CXX object
CMakeFiles/runUnitTests.dir/src/testCanBuildFrom.cpp.o
/wg/stor6_home3/echristiansen/DropboxDontUse/Dropbox/t/2013_q1/salve/src/testCanBuildFrom.cpp:
In constructor ‘constexpr Stringy<int>::Stringy()’:
/wg/stor6_home3/echristiansen/DropboxDontUse/Dropbox/t/2013_q1/salve/src/testCanBuildFrom.cpp:57:8:
internal compiler error: in build_data_member_initialization, at
cp/semantics.c:5790
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccSUtCpb.out file, please attach this to
your bugreport.
make[2]: *** [CMakeFiles/runUnitTests.dir/src/testCanBuildFrom.cpp.o] Error 1
make[1]: *** [CMakeFiles/runUnitTests.dir/all] Error 2
make: *** [all] Error 2
"""

System: Ubuntu 12.10 x64

Preprocessed source: Attached


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

* [Bug c++/56545] internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790
  2013-03-05 18:31 [Bug c++/56545] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790 ericmartinchristiansen at gmail dot com
@ 2013-03-05 18:42 ` ericmartinchristiansen at gmail dot com
  2013-03-05 19:03 ` markus at trippelsdorf dot de
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ericmartinchristiansen at gmail dot com @ 2013-03-05 18:42 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Eric Christiansen <ericmartinchristiansen at gmail dot com> 2013-03-05 18:42:04 UTC ---
Created attachment 29591
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29591
preprocessed source


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

* [Bug c++/56545] internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790
  2013-03-05 18:31 [Bug c++/56545] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790 ericmartinchristiansen at gmail dot com
  2013-03-05 18:42 ` [Bug c++/56545] " ericmartinchristiansen at gmail dot com
@ 2013-03-05 19:03 ` markus at trippelsdorf dot de
  2013-03-05 19:12 ` paolo.carlini at oracle dot com
  2013-03-05 19:31 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: markus at trippelsdorf dot de @ 2013-03-05 19:03 UTC (permalink / raw)
  To: gcc-bugs


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2013-03-05 19:03:01 UTC ---
Probably dup of Bug 54126.

Reduced:

template<typename>struct StringyInterface
{};
template<typename>struct StringyImplementation;
template<>struct StringyImplementation<int>: StringyInterface<int>
{};
template<typename A>struct Stringy
{
  const StringyInterface<A>& verifyConforms =
    StringyImplementation<A>();
};
void
fn1()
{
  Stringy<int>().verifyConforms;
}


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

* [Bug c++/56545] internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790
  2013-03-05 18:31 [Bug c++/56545] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790 ericmartinchristiansen at gmail dot com
  2013-03-05 18:42 ` [Bug c++/56545] " ericmartinchristiansen at gmail dot com
  2013-03-05 19:03 ` markus at trippelsdorf dot de
@ 2013-03-05 19:12 ` paolo.carlini at oracle dot com
  2013-03-05 19:31 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-05 19:12 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-05 19:11:38 UTC ---
Both the reduced testcase and the original one works fine with current mainline
and 4_7-branch for me. Thus I don't think this is a Dup of 54126, I think it
can be closed.


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

* [Bug c++/56545] internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790
  2013-03-05 18:31 [Bug c++/56545] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790 ericmartinchristiansen at gmail dot com
                   ` (2 preceding siblings ...)
  2013-03-05 19:12 ` paolo.carlini at oracle dot com
@ 2013-03-05 19:31 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-05 19:31 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

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

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-05 19:30:50 UTC ---
Found it.

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


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

end of thread, other threads:[~2013-03-05 19:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05 18:31 [Bug c++/56545] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790 ericmartinchristiansen at gmail dot com
2013-03-05 18:42 ` [Bug c++/56545] " ericmartinchristiansen at gmail dot com
2013-03-05 19:03 ` markus at trippelsdorf dot de
2013-03-05 19:12 ` paolo.carlini at oracle dot com
2013-03-05 19:31 ` paolo.carlini at oracle 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).