https://llvm.org/bugs/show_bug.cgi?id=25255

            Bug ID: 25255
           Summary: Crush associated with namespace resolution operator
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: tomilovanato...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

The code:

#include <cassert>
#include <cstdlib>

int
main()
{
    struct A { int i; A(int j) : i(j) { ; } };
    struct E { int j = 3; };
    struct B : A, E { using A::A; using A = E; };
    B b{1};
    b.A::i = 1;
    return EXIT_SUCCESS;
}

Gives an error:

clang++ -I. -std=gnu++1z -stdlib=libc++ -march=native -Ofast -W -Weverything
-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-newline-eof
-DDIM=100 main.cpp && ./a.out
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final 246979)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/main-9fc25a.cpp
clang: note: diagnostic msg: /tmp/main-9fc25a.sh
clang: note: diagnostic msg: 

********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to