[LLVMbugs] [Bug 6464] New: Assertion failed: (D->isOutOfLine())
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 2 11:12:19 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6464
Summary: Assertion failed: (D->isOutOfLine())
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4362)
--> (http://llvm.org/bugs/attachment.cgi?id=4362)
testcase
$ cat assert12.cc
template <class Y> class foo {}
bool foo<X>::bar( a )
$ clang assert12.cc
assert12.cc:1:32: error: expected ';' after class
template <class Y> class foo {}
^
;
assert12.cc:2:10: error: use of undeclared identifier 'X'
bool foo<X>::bar( a )
^
assert12.cc:2:14: error: definition or redeclaration of 'bar' cannot name the
global scope
bool foo<X>::bar( a )
~~^
assert12.cc:2:14: error: no member named 'bar' in the global namespace
bool foo<X>::bar( a )
~~^
Assertion failed: (D->isOutOfLine()), function ActOnCXXEnterDeclInitializer,
file SemaDeclCXX.cpp, line 5743.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name assert12.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-eEcJ7Z.s -x c++ assert12.cc
1. assert12.cc:2:19: current parser token 'a'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
$ clang --version
clang version 1.1 (trunk 97574)
Target: x86_64-segfault-freebsd8.0
Thread model: posix
--
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