public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29363]  New: [4.2 regression] ICE throwing undeclared object
@ 2006-10-05 23:37 reichelt at gcc dot gnu dot org
  2006-10-06  3:51 ` [Bug c++/29363] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-10-05 23:37 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

==============================
template<int> void foo()
{
  throw A();
  struct A {} a;
}

template void foo<0>();
==============================

bug.cc: In function 'void foo()':
bug.cc:3: error: there are no arguments to 'A' that depend on a template
parameter, so a declaration of 'A' must be available
bug.cc:3: error: (if you use '-fpermissive', G++ will accept your code, but
allowing the use of an undeclared name is deprecated)
bug.cc: In function 'void foo() [with int <anonymous> = 0]':
bug.cc:7:   instantiated from here
bug.cc:3: error: 'A' was not declared in this scope
bug.cc: At global scope:
bug.cc: In instantiation of 'foo() [with int <anonymous> = 0]::A':
bug.cc:4:   instantiated from 'void foo() [with int <anonymous> = 0]'
bug.cc:7:   instantiated from here
bug.cc:4: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2 regression] ICE throwing undeclared object
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-11-13 18:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-05 23:37 [Bug c++/29363] New: [4.2 regression] ICE throwing undeclared object reichelt at gcc dot gnu dot org
2006-10-06  3:51 ` [Bug c++/29363] " pinskia at gcc dot gnu dot org
2006-10-08  2:44 ` pinskia at gcc dot gnu dot org
2006-10-15 21:18 ` mmitchel at gcc dot gnu dot org
2006-10-17 23:44 ` lmillward at gcc dot gnu dot org
2006-10-18 15:00 ` patchapp at dberlin dot org
2007-05-14 21:27 ` [Bug c++/29363] [4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-07-20  3:52 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:26 ` mmitchel at gcc dot gnu dot org
2007-12-21  7:29 ` steven at gcc dot gnu dot org
2008-02-01 16:55 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:30 ` [Bug c++/29363] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-08-16 23:21 ` pinskia at gcc dot gnu dot org
2008-08-16 23:23 ` pinskia at gcc dot gnu dot org
2008-08-17 12:01 ` jakub at gcc dot gnu dot org
2009-03-31 19:47 ` [Bug c++/29363] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:35 ` rguenth at gcc dot gnu dot org
2009-11-13 17:51 ` jason at gcc dot gnu dot org
2009-11-13 18:47 ` jason at gcc dot gnu dot org
2009-11-13 18:48 ` jason at gcc dot gnu dot 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).