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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to