[LLVMbugs] [Bug 9536] New: Valid code rejected

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 23 14:46:53 PDT 2011


           Summary: Valid code rejected
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

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.

More information about the llvm-bugs mailing list