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++/14028] New: Parser accepts invalid unbalanced triangular bracketing.


The following code:

template < typename TP > struct A {};
template < typename TP > class B : public TP::template K < A < TP > {};

is accepted by 3.4, but should presumably be rejected due to the unbalanced
triangular bracketing.

3.2 and 3.3 reject this like they should.

-- 
           Summary: Parser accepts invalid unbalanced triangular bracketing.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mattyt-bugzilla at tpg dot com dot au
                CC: gcc-bugs at gcc dot gnu dot org


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


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