public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20463] New: [4.0/4.1 regression] ICE on using undefined type
@ 2005-03-13 22:12 belyshev at depni dot sinp dot msu dot ru
  2005-03-13 22:16 ` [Bug c++/20463] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-03-13 22:12 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]

This invalid code snippet produces ICE on mainline and 4.0 branch:

-------------------------------------------------------------------------------
template < typename T > struct C;

template < typename T > void C < T > :: f ()
{
  const foo bar;
}
-------------------------------------------------------------------------------

foo.cc:3: error: invalid use of undefined type ‘struct C<T>’
foo.cc:1: error: declaration of ‘struct C<T>’
foo.cc:3: error: template definition of non-template ‘void C<T>::f()’
foo.cc: In member function ‘void C<T>::f()’:
foo.cc:5: error: ‘foo’ does not name a type
foo.cc:5: internal compiler error: Segmentation fault

-- 
           Summary: [4.0/4.1 regression] ICE on using undefined type
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belyshev at depni dot sinp dot msu dot ru
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-03-22  9:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13 22:12 [Bug c++/20463] New: [4.0/4.1 regression] ICE on using undefined type belyshev at depni dot sinp dot msu dot ru
2005-03-13 22:16 ` [Bug c++/20463] " pinskia at gcc dot gnu dot org
2005-03-18 12:05 ` pcarlini at suse dot de
2005-03-18 13:48 ` pinskia at gcc dot gnu dot org
2005-03-18 17:17 ` cvs-commit at gcc dot gnu dot org
2005-03-18 17:20 ` cvs-commit at gcc dot gnu dot org
2005-03-22  9:12 ` [Bug c++/20463] [4.0 " cvs-commit at gcc dot gnu dot org
2005-03-22  9:29 ` cvs-commit at gcc dot gnu dot org
2005-03-22  9:30 ` pcarlini at suse dot de

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