[LLVMbugs] [Bug 3430] New: top-level 'struct x; ' decl shadows other non-top level ' struct s {...}' decls

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 28 05:59:26 PST 2009


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

           Summary: top-level 'struct x;' decl shadows other non-top level
                    'struct s {...}' decls
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


'clang -fsyntax-only' does eat the following:

struct s {
        struct st {
                int v;
        } *ts;
};

// it works if next line is removed
struct st;

int foo() {
        struct st *f;
        return f->v + f[0].v;
}


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