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

           Summary: segmentation fault when compiling this program with
                    constexpr
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: akrze...@gmail.com


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

linux version (uname -a):
Linux localhost.localdomain 2.6.38.2-9.fc15.i686.PAE #1 SMP Wed Mar 30 16:47:28
UTC 2011 i686 i686 i386 GNU/Linux

gcc version 4.6.0 20110428 (Red Hat 4.6.0-6) (GCC) 
(this is the default that was shipped with the beta version of fedora 15)

I compile the attached file using command:
g++ bug.cpp -std=c++0x

The response I get is:
bug.cpp:12:17:   in constexpr expansion of ‘s1.Stack::Stack((*(const Stack*)(&
s)), 10)’
bug.cpp:12:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccIWdWoz.out file, please attach this to
your bugreport.

Reply via email to