[LLVMbugs] [Bug 13273] New: defaulted default ctors + inheritance + const local var == BOOM!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 4 13:49:43 PDT 2012


             Bug #: 13273
           Summary: defaulted default ctors + inheritance + const local
                    var == BOOM!
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: eric at boostpro.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following trivial C++11 program causes clang to go down in flames.

    struct U
        int t;
        U() = default;

    struct S : U
        S() = default;

    int main()
        S const s{};

$ /usr/local/bin/clang++ -c -O2 -DNDEBUG -std=gnu++11 main.cpp -o main.o
g++: /tmp/main-ubgquK.s: No such file or directory
g++: warning: '-x assembler' after last input file has no effect
g++: no input files
clang: error: assembler (via gcc) command failed with exit code 1 (use -v to
see invocation)

This is with clang build from trunk (recent) on cygwin.

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