[LLVMbugs] [Bug 3261] New: IsDefinition value of TagDecl is wrong inside TypedefDecl() 's UnderlyingType.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 23 07:32:51 PST 2008


           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: unassignedclangbugs at nondot.org
        ReportedBy: bolzoni at cs.unipr.it
                CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it

Example code:
struct str;
typedef struct str B;
struct str {
  int a; };
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.

More information about the llvm-bugs mailing list