public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x
@ 2011-03-18 19:39 gcchelp.5.adept at 0sg dot net
  2011-03-18 19:52 ` [Bug c++/48196] " gcchelp.5.adept at 0sg dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gcchelp.5.adept at 0sg dot net @ 2011-03-18 19:39 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE (segmentation fault) on inclusion of <utility>,
                    C++0x
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gcchelp.5.adept@0sg.net


Created attachment 23715
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23715
preprocessed source, exhibiting the bug

I will attach two preprocessed files, one for which GCC is working, and one for
which GCC stops with an ICE. The difference is in the inclusion of <utility> at
one point.

I am using GCC 4.5.2 on mac, compiled from FSF source as follows

Using built-in specs.
COLLECT_GCC=/opt/bin/gcc
COLLECT_LTO_WRAPPER=/opt/gcc-4.5/bin/../libexec/gcc/x86_64-apple-darwin10.6.0/4.5.2/lto-wrapper
Target: x86_64-apple-darwin10.6.0
Configured with: ../gcc-4.5.2/configure -prefix=/opt/gcc --with-gmp=/opt/gmp
--with-mpfr=/opt/mpfr --with-mpc=/opt/mpc --with-ppl=/opt/ppl
--with-cloog=/opt/cloog --disable-nls --enable-visibility --with-arch=nocona
Thread model: posix
gcc version 4.5.2 (GCC) 

The command line option used to produce the bug:

/opt/bin/gcc -x c++ -m32 -fmessage-length=0 -pipe -std=gnu++0x -Wno-trigraphs
-fno-exceptions -fno-rtti -O0 -D_DEBUG=1 -isysroot
/Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -ffast-math
-Wno-invalid-offsetof -mmacosx-version-min=10.5 -gdwarf-2
-F/Users/christian/Desktop/depot/dev/build/../bin
-I/Users/christian/Desktop/depot/dev/build/../bin/include
-I/Users/christian/Desktop/depot/dev/build/../00-temp/mbl.build/Debug/arieslib-level0.build/DerivedSources/i386
-I/Users/christian/Desktop/depot/dev/build/../00-temp/mbl.build/Debug/arieslib-level0.build/DerivedSources
-Wall -fvisibility=hidden -c
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-compiler-codegen.cc
-o
/Users/christian/Desktop/depot/dev/build/../00-temp/mbl.build/Debug/arieslib-level0.build/Objects-normal/i386/script-compiler-codegen.o

When the ICE occurs, the output is

In file included from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/core-table.h:29:0,
                 from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-parser.h:11,
                 from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-compiler.h:11,
                 from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-compiler-codegen.cc:11:
/Users/christian/Desktop/depot/dev/build/../source/arieslib/core-array.h: In
member function 'void Array<T, Alloc>::InsertSpace(unsigned int, unsigned
int)':
/Users/christian/Desktop/depot/dev/build/../source/arieslib/core-array.h:716:34:
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.

Thanks!


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

* [Bug c++/48196] ICE (segmentation fault) on inclusion of <utility>, C++0x
  2011-03-18 19:39 [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x gcchelp.5.adept at 0sg dot net
@ 2011-03-18 19:52 ` gcchelp.5.adept at 0sg dot net
  2011-03-23  7:03 ` [Bug c++/48196] [C++0x] ICE on inclusion of <utility>, decltype gcchelp.5.adept at 0sg dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gcchelp.5.adept at 0sg dot net @ 2011-03-18 19:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from gcchelp.5.adept at 0sg dot net 2011-03-18 19:35:45 UTC ---
Created attachment 23716
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23716
does not exhibit the bug


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

* [Bug c++/48196] [C++0x] ICE on inclusion of <utility>, decltype
  2011-03-18 19:39 [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x gcchelp.5.adept at 0sg dot net
  2011-03-18 19:52 ` [Bug c++/48196] " gcchelp.5.adept at 0sg dot net
@ 2011-03-23  7:03 ` gcchelp.5.adept at 0sg dot net
  2011-03-23  9:05 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gcchelp.5.adept at 0sg dot net @ 2011-03-23  7:03 UTC (permalink / raw)
  To: gcc-bugs

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

Christian Schüler <gcchelp.5.adept at 0sg dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE (segmentation fault) on |[C++0x] ICE on inclusion of
                   |inclusion of <utility>,     |<utility>, decltype
                   |C++0x                       |

--- Comment #2 from Christian Schüler <gcchelp.5.adept at 0sg dot net> 2011-03-23 02:24:19 UTC ---
It also does not exhibit the bug when 'decltype' is replaced with '__typeof'.
This can be done as a workaround.


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

* [Bug c++/48196] [C++0x] ICE on inclusion of <utility>, decltype
  2011-03-18 19:39 [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x gcchelp.5.adept at 0sg dot net
  2011-03-18 19:52 ` [Bug c++/48196] " gcchelp.5.adept at 0sg dot net
  2011-03-23  7:03 ` [Bug c++/48196] [C++0x] ICE on inclusion of <utility>, decltype gcchelp.5.adept at 0sg dot net
@ 2011-03-23  9:05 ` paolo.carlini at oracle dot com
  2011-03-23 12:21 ` paolo.carlini at oracle dot com
  2011-03-23 21:02 ` gcchelp.5.adept at 0sg dot net
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-03-23  9:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-03-23 08:43:48 UTC ---
Can you try either current mainline or 4_6-branch (would be 4.6.0), because
quite a few fixes went into those and if the issue isn't a regression and
affects only older branches is very unlikely to be fixed.


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

* [Bug c++/48196] [C++0x] ICE on inclusion of <utility>, decltype
  2011-03-18 19:39 [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x gcchelp.5.adept at 0sg dot net
                   ` (2 preceding siblings ...)
  2011-03-23  9:05 ` paolo.carlini at oracle dot com
@ 2011-03-23 12:21 ` paolo.carlini at oracle dot com
  2011-03-23 21:02 ` gcchelp.5.adept at 0sg dot net
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-03-23 12:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.6.0, 4.7.0
         Resolution|                            |WORKSFORME

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-03-23 11:58:12 UTC ---
Indeed, I just checked and both mainline and 4_6-branch are fine. If you see
something different, please re-open.


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

* [Bug c++/48196] [C++0x] ICE on inclusion of <utility>, decltype
  2011-03-18 19:39 [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x gcchelp.5.adept at 0sg dot net
                   ` (3 preceding siblings ...)
  2011-03-23 12:21 ` paolo.carlini at oracle dot com
@ 2011-03-23 21:02 ` gcchelp.5.adept at 0sg dot net
  4 siblings, 0 replies; 6+ messages in thread
From: gcchelp.5.adept at 0sg dot net @ 2011-03-23 21:02 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Christian Schüler <gcchelp.5.adept at 0sg dot net> 2011-03-23 20:00:55 UTC ---
Yes, 4.6. release candidate doesn't crash thanks


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

end of thread, other threads:[~2011-03-23 20:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-18 19:39 [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x gcchelp.5.adept at 0sg dot net
2011-03-18 19:52 ` [Bug c++/48196] " gcchelp.5.adept at 0sg dot net
2011-03-23  7:03 ` [Bug c++/48196] [C++0x] ICE on inclusion of <utility>, decltype gcchelp.5.adept at 0sg dot net
2011-03-23  9:05 ` paolo.carlini at oracle dot com
2011-03-23 12:21 ` paolo.carlini at oracle dot com
2011-03-23 21:02 ` gcchelp.5.adept at 0sg dot net

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