http://llvm.org/bugs/show_bug.cgi?id=3261
Summary: IsDefinition value of TagDecl is wrong inside
TypedefDecl()'s UnderlyingType.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Example code:
---->
struct str;
typedef struct str B;
struct str {
int a; };
----<
against:
---->
struct str;
typedef struct str {
int a; } B;
----<
In the first case, I have a typedef declaration, from which I obtain a
QualType, from which I obtain the unqualified type, TagType. Now, I have to ask
the declaration but IsDefinition value is true.
So I can not distinguish well.
--
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