[LLVMbugs] [Bug 4221] New: -ast-print doesn't print tag definitions correctly

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat May 16 18:33:22 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4221

           Summary: -ast-print doesn't print tag definitions correctly
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
typedef struct {int x;} t1;
int t2() { return (struct {int x;}){1}.x; }
struct t3 { struct {int x,y;}; int z;};

Actual output:
typedef t1 t1;

int t2() {
  return (struct <anonymous>){ 1 }.x;
}

struct t3 {
  struct  {
    int x;
    int y;
  };
  struct t3::<anonymous>;
  int z;
};

-ast-print should not be printing anything with <anonymous>, and it should
print definitions for all three structs.


-- 
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