[llvm-bugs] [Bug 25738] New: Misleading error message when using a member operator with an incomplete type
llvm-bugs at lists.llvm.org
Fri Dec 4 03:10:06 PST 2015
Bug ID: 25738
Summary: Misleading error message when using a member operator
with an incomplete type
Assignee: unassignedclangbugs at nondot.org
Reporter: eyenseo at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Created attachment 15396
I found this (annoyingly) misleading error message.
When you use an operator of a type that is incomplete the error will not inform
you that the type is missing but that there is no such operator.
I would suggest that if an operator can not be found an additional check should
be made, that checks if all types that the operator is using are complete. If
one type is incomplete that should be the error message instead of the 'no
viable overloaded operator' one - or an additional note.
Attached you'll find a minimal example.
System: Linux 3.19.0-37-generic #42~14.04.1-Ubuntu SMP Mon Nov 23 15:13:51 UTC
Clang version: Ubuntu clang version 3.7.1-svn253742-1~exp1
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs