public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54416] New: [4.8] ICE (segv) in codegen
@ 2012-08-30  9:30 simonb at google dot com
  2012-08-30 10:00 ` [Bug c++/54416] [4.7/4.8 Regression] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: simonb at google dot com @ 2012-08-30  9:30 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54416
           Summary: [4.8] ICE (segv) in codegen
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: simonb@google.com


Created attachment 28105
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28105
ice.cc

In gcc trunk at r190799:

  configure \
  --enable-languages=c,c++ --disable-bootstrap \
  --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu \
  --target=x86_64-unknown-linux-gnu

  make -j6 all-gcc

  cat /tmp/ice.cc
  int mumble;
  static
  __typeof (mumble)
     __gthrw_pthread_once __attribute__ ((__weakref__ ("mumble")));
  template < typename T > struct foo;
  template <> struct foo < int >;
  template < typename T > struct bar
  {
    template <> struct foo < int >
    {
      void baz ();
    };
  };
  void foo < int >::baz () { }

  gcc/xgcc -B gcc -c -o /dev/null /tmp/ice.cc
  /tmp/ice1.cc:9:13: error: explicit specialization in non-namespace scope
'struct bar<T>'
     template <> struct foo < int >
               ^
  /tmp/ice1.cc:15:28: internal compiler error: Segmentation fault
   void foo < int >::baz () { }
                            ^
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2012-12-11 22:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-30  9:30 [Bug c++/54416] New: [4.8] ICE (segv) in codegen simonb at google dot com
2012-08-30 10:00 ` [Bug c++/54416] [4.7/4.8 Regression] " jakub at gcc dot gnu.org
2012-09-07 10:46 ` rguenth at gcc dot gnu.org
2012-09-20 10:28 ` jakub at gcc dot gnu.org
2012-12-09  1:17 ` jason at gcc dot gnu.org
2012-12-11 18:17 ` jason at gcc dot gnu.org
2012-12-11 22:28 ` jason at gcc dot gnu.org

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