Skip to content

Parsing error when two template closing delimiter are used together without separator ">>" #2318

@slnj

Description

@slnj

Getting parsing error in this case:
FAILS:

auto foo( A<int>* p ) 
{
    auto a = f(std::shared_ptr<A<int>>(p));
}

But If change ">>" by "> >" ( adding one separator between ">" then parsing is ok )
OK:

auto foo( A<int>* p ) 
{
    auto a = f(std::shared_ptr<A<int> >(p));
} 

Also if f() call is removed , ">>" without separator is accepted.
OK:

auto foo( A<int>* p ) 
{
    auto a = std::shared_ptr<A<int>>(p);
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions