This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24200] New: Error recovery problem after spurious "typename"


[ forwarded from http://bugs.debian.org/325545 ]

This ill-formed code makes g++ ICE:

template <int> struct foo;

template<>
struct foo<0>
{
  typedef int t;
};

int main()
{
  1 << typename foo<0>::t(42);
}


-- 
           Summary: Error recovery problem after spurious "typename"
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]