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

           Summary: Valid code rejected
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Right now clang rejects the following code, which is apparently wrong:

struct Foo {
  typedef struct {
    static const unsigned int val = 0;
  } Bar1;
  static const unsigned int _Bar1 = Bar1::val;
  typedef struct {
    static const unsigned int val = _Bar1 + 1;
  } Bar2;
};

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