Skip to content

clang c++ "infinite" loop with template class and operator-> #9991

@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 9619
Resolution FIXED
Resolved on Apr 09, 2014 02:36
Version unspecified
OS Linux
CC @DougGregor,@zygoloid,@rjmccall

Extended Description

Testcase:
template struct A {
A<x+1> operator->() { return A<x+1>(); }
};
void f() { A<0> x; x->foo(); }

There isn't any limit on the number of operator->'s that clang will try to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions