[LLVMbugs] [Bug 11701] New: 'Assertion failed: (isArray() && "Invalid accessor")' with constexpr and string literal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 3 17:02:32 PST 2012


             Bug #: 11701
           Summary: 'Assertion failed: (isArray() && "Invalid accessor")'
                    with constexpr and string literal
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
                    richard-llvm at metafoo.co.uk
    Classification: Unclassified


class C { char a[4] = "foo"; };
constexpr C a = C();
constexpr int b = a.a[0];

Assertion failed: (isArray() && "Invalid accessor"), function
getArrayInitializedElts, file
line 272.

(This is from a thread from cfe-commits; putting it here so we don't lose track
of it.)

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