http://llvm.org/bugs/show_bug.cgi?id=13155
Bug #: 13155
Summary: Type gets lost during Parsing
Product: clang
Version: 3.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
// Simple Test-Code:
class MyClass
{
Blah myFunction();
};
// Output:
test4.h:3:3: error: unknown type name 'Blah'
Blah myFunction();
This error is expected as Blah is really not declared.
// getting the Type:
CXXMethodDecl::getResultType::getAsString() = "int", expected: "Blah"
Should not return "int"!
There is no possibility to get the used name "Blah"
--
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