[llvm-bugs] [Bug 25255] New: Crush associated with namespace resolution operator
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 19 11:31:26 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: tomilovanatoliy at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151019/dae33296/attachment.html>
More information about the llvm-bugs
mailing list