Open Quuxplusone opened 8 years ago
Bugzilla Link | PR25266 |
Status | NEW |
Importance | P normal |
Reported by | Hyman Rosen (hyrosen@mail.com) |
Reported on | 2015-10-20 14:18:33 -0700 |
Last modified on | 2015-10-21 02:18:18 -0700 |
Version | 3.7 |
Hardware | PC Linux |
CC | dgregor@apple.com, hyrosen@mail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
(In reply to comment #0)
> I don't know why the compiler wants A<T> to be complete when
> it's just dealing with A<T>*
Argument-dependent lookup for operator, needs to look for friend functions
defined within A<T>, because it's an associated class of the lookup.
> or why uncommenting the marked line helps.
When ADL triggers an instantiation, if that instantiation can't be performed
because we're already in the middle of doing it, we silently ignore the attempt
to complete the type. That's probably a bug; we should probably reject this
irrespective of whether A<int> or B<int> is instantiated first.