[llvm-bugs] [Bug 25738] New: Misleading error message when using a member operator with an incomplete type
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Dec 4 03:10:06 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25738
Bug ID: 25738
Summary: Misleading error message when using a member operator
with an incomplete type
Product: clang
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: eyenseo at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15396
--> https://llvm.org/bugs/attachment.cgi?id=15396&action=edit
Minimal example
Hello,
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
2015 x86_64
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...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151204/063fb8f8/attachment.html>
More information about the llvm-bugs
mailing list