http://llvm.org/bugs/show_bug.cgi?id=9047
Summary: Poor handling of erroneous return type
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
$ cat t2.cc
const foo *Bar() { return 42; }
$ clang t2.cc
t2.cc:3:7: error: unknown type name 'foo'
const foo *Bar() { return 42; }
^
t2.cc:3:27: error: cannot initialize return object of type 'const int *' with
an rvalue of type 'int'
const foo *Bar() { return 42; }
^~
What is this "const int *" that you speak of??
-Chris
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs