Open Quuxplusone opened 12 years ago
Attached prog-mSuOGe.ii
(501 bytes, application/octet-stream): reduced test case (provided by C.S.)
This looks similar:
FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: x86_64-unknown-freebsd9.0
Thread model: posix
compile.c++.without-pth
/home/rbock/projects/girocount/.build/develop/BillingApp/clang-freebsd-3.1/debug/threading-multi/TableHoldback.o
In file included from TableHoldback.cpp:1:
../BillingApp/TableHoldback.h:5:10: fatal error: 'GirocountBilling.h' file not
found
#include <GirocountBilling.h>
^
Assertion failed: (DefinitionData && "queried property of class with no
definition"), function data, file
/usr/src/lib/clang/libclangsema/../../../contrib/llvm/tools/clang/include/clang/AST/DeclCXX.h,
line 614.
Stack dump:
0. Program arguments: /basejail/usr/bin/clang++ -cc1 -triple x86_64-
unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name
TableHoldback.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-
aliases -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -coverage-
file /home/rbock/projects/girocount/.build/develop/BillingApp/clang-freebsd-
3.1/debug/threading-multi/TableHoldback.o -resource-dir
/basejail/usr/bin/../lib/clang/3.1 -I .. -I
/home/rbock/projects/girocount/.build/develop/submodules/clang-freebsd-
3.1/debug/threading-multi -I /usr/local/include -I /usr/local/rmg/include -
fmodule-cache-path /var/tmp/clang-module-cache -stdlib=libc++ -stdlib=libc++ -
O0 -Wall -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/rbock/projects/girocount/BillingApp -ferror-limit 19 -fmessage-length 0 -
pthread -mstackrealign -fno-inline -fgnu-runtime -fobjc-runtime-has-arc -fobjc-
runtime-has-weak -fobjc-dispatch-method=non-legacy -fcxx-exceptions -
fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/home/rbock/projects/girocount/.build/develop/BillingApp/clang-freebsd-
3.1/debug/threading-multi/TableHoldback.o -x c++ TableHoldback.cpp
1. TableHoldback.cpp:14:88: current parser token ':'
2. TableHoldback.cpp:10:1: parsing namespace 'Girocount'
3. TableHoldback.cpp:12:2: parsing namespace 'Billing'
clang++: error: unable to execute command: Abort trap: 6 (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see
invocation)
clang++: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang++: note: diagnostic msg: Error generating preprocessed source(s).
Comment on attachment 8996
another test case
This does not crash clang++ 3.4.1.
The sample code provided by Hal Finkel still, does, though.
Attached reduced-queried.ii
(1104 bytes, application/octet-stream): another test case
template<typename T>
class A;
class B {
int member;
template<typename T>
void A<T>::foo() {
member = 0;
}
};
Crashes with r213220.
prog-mSuOGe.ii
(501 bytes, application/octet-stream)reduced-queried.ii
(1104 bytes, application/octet-stream)