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

* [Bug c++/54416] [4.7/4.8 Regression] ICE (segv) in codegen
  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 ` jakub at gcc dot gnu.org
  2012-09-07 10:46 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-08-30 10:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|                            |2012-08-30
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1
            Summary|[4.8] ICE (segv) in codegen |[4.7/4.8 Regression] ICE
                   |                            |(segv) in codegen
   Target Milestone|---                         |4.7.2

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-30 10:00:15 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183221
Guess the uninstantiated templates shouldn't be registered with cgraph either
then.


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

* [Bug c++/54416] [4.7/4.8 Regression] ICE (segv) in codegen
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-07 10:46 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
           Priority|P3                          |P4


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

* [Bug c++/54416] [4.7/4.8 Regression] ICE (segv) in codegen
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-20 10:28 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.2                       |4.7.3

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-20 10:20:30 UTC ---
GCC 4.7.2 has been released.


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

* [Bug c++/54416] [4.7/4.8 Regression] ICE (segv) in codegen
  2012-08-30  9:30 [Bug c++/54416] New: [4.8] ICE (segv) in codegen simonb at google dot com
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-12-09  1:17 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|4.7.3                       |4.8.0


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

* [Bug c++/54416] [4.7/4.8 Regression] ICE (segv) in codegen
  2012-08-30  9:30 [Bug c++/54416] New: [4.8] ICE (segv) in codegen simonb at google dot com
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-12-11 18:17 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-12-11 18:17:00 UTC ---
Author: jason
Date: Tue Dec 11 18:16:50 2012
New Revision: 194408

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194408
Log:
    PR c++/54416
    * pt.c (maybe_process_partial_specialization): Don't accept
    definition of a specialization without the appropriate header.

Added:
    trunk/gcc/testsuite/g++.dg/template/error48.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/g++.dg/template/crash105.C


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

* [Bug c++/54416] [4.7/4.8 Regression] ICE (segv) in codegen
  2012-08-30  9:30 [Bug c++/54416] New: [4.8] ICE (segv) in codegen simonb at google dot com
                   ` (4 preceding siblings ...)
  2012-12-11 18:17 ` jason at gcc dot gnu.org
@ 2012-12-11 22:28 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-12-11 22:28 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-12-11 22:28:39 UTC ---
Fixed for 4.8, not backporting error-recovery fixes.


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