public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition
@ 2004-04-30 15:12 reichelt at gcc dot gnu dot org
  2004-04-30 15:41 ` [Bug c++/15227] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-04-30 15:12 UTC (permalink / raw)
  To: gcc-bugs

The following testcase (which is invalid, as A::B doesn't exist)
causes trouble:

=============================================
template<typename> struct A {};

template<typename T> void A<T>::B::foo() {}
=============================================

GCC 2.95.3 correctly rejects the code,
gcc 3.1 - 3.3.4 wrongly accept it,
gcc 3.0.x, 3.4.0 and mainline segfault.

-- 
           Summary: [3.3/3.4/3.5 regression] Trouble with invalid function
                    definition
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, accepts-invalid
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-06-10 14:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30 15:12 [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition reichelt at gcc dot gnu dot org
2004-04-30 15:41 ` [Bug c++/15227] " pinskia at gcc dot gnu dot org
2004-06-06  3:40 ` giovannibajo at libero dot it
2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org
2004-06-10 14:27 ` cvs-commit at gcc dot gnu dot org
2004-06-10 14:29 ` mmitchel at gcc dot gnu dot org
2004-06-10 14:55 ` pinskia 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).