This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54416] New: [4.8] ICE (segv) in codegen


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]