[Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Apr 30 15:12:00 GMT 2004


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



More information about the Gcc-bugs mailing list