public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "neuront at bitfoc dot us" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/48211] New: [C++0x] Segment Fault When Compiling
Date: Sun, 20 Mar 2011 16:40:00 -0000	[thread overview]
Message-ID: <bug-48211-4@http.gcc.gnu.org/bugzilla/> (raw)

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

           Summary: [C++0x] Segment Fault When Compiling
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: neuront@bitfoc.us


Created attachment 23729
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23729
source file and temp file.

Source file that leads to crash is in attachment, named as function.cpp, along
with temp files function. ii and function.s

The following is what I did to compile the source and the output by the
compiler.

$ gcc -std=c++0x function.cpp
In file included from
/usr/local/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/memory:85:0,
                 from function.cpp:2:
/usr/local/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/bits/unique_ptr.h:
In instantiation of ‘constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr() [with
_Tp = const stmt_base, _Dp = std::default_delete<const stmt_base>]’:
function.cpp:8:8:   instantiated from ‘sptr<const stmt_base>’
function.cpp:28:33:   instantiated from here
/usr/local/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/bits/unique_ptr.h:115:59:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The following is compiler and system info.

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --enable-languages=c,c++,fortran,lto,objc
Thread model: single
gcc version 4.7.0 20110320 (experimental) (GCC)


             reply	other threads:[~2011-03-20 15:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-20 16:40 neuront at bitfoc dot us [this message]
2011-03-20 18:37 ` [Bug c++/48211] " redi at gcc dot gnu.org
2011-03-21 13:24 ` neuront at bitfoc dot us
2011-04-01 19:16 ` pinskia at gcc dot gnu.org
2011-05-03 21:03 ` [Bug c++/48211] [4.7 Regression] " redi at gcc dot gnu.org
2011-05-26 17:02 ` jason at gcc dot gnu.org
2011-05-26 18:31 ` jason at gcc dot gnu.org
2011-05-26 18:32 ` jason at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-48211-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).