[LLVMbugs] [Bug 6376] Assertion failed: ((Result || isa<UsingShadowDecl>(D)) && "Unable to find instantiation of declaration!"), function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp, line 2306.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 21 16:00:08 PST 2010


http://www.llvm.org/bugs/show_bug.cgi?id=6376

--- Comment #2 from Albert Zeyer <ich at az2000.de> 2010-02-21 18:00:07 CST ---
Just in front of the assert, I added this:


        PrettyStackTraceActionsDecl CrashInfo(DeclPtrTy::make(D),
                                          D->getLocation(), *this,
                                          Context.getSourceManager(),
                                          "Sema::FindInstantiatedDecl");

    // UsingShadowDecls can instantiate to nothing because of using hiding.
    assert((Result || isa<UsingShadowDecl>(D))
           && "Unable to find instantiation of declaration!");


(Damn cool this PrettyStackTraceActionsDecl! :))

Then I am getting this output:

Stack dump:
0.    Program arguments:
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -S -disable-free -main-file-name distortion.cpp
-pic-level 1 -mdisable-fp-elim -target-cpu yonah -g -resource-dir
/Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.1 -DDEBUG=1
-D_AI_DEBUG -D SYSTEM_DATA_DIR="/usr/share/games"
-I/Users/az/Programmierung/openlierox/./optional-includes/generated
-I/Users/az/Programmierung/openlierox/./include
-I/Users/az/Programmierung/openlierox/./src
-I/Users/az/Programmierung/openlierox/./libs/pstreams -I/usr/include/libxml2
-I/usr/local/include/libxml2
-I/Users/az/Programmierung/openlierox/./src/breakpad/external/src
-I/Users/az/Programmierung/openlierox/./libs/hawknl/include
-I/Users/az/Programmierung/openlierox/./libs/libzip
-I/Users/az/Programmierung/openlierox/./libs/lua
-I/Users/az/Programmierung/openlierox/./build/Xcode/include
-I/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include
-I/Library/Frameworks/SDL.framework/Headers
-I/Library/Frameworks/SDL_image.framework/Headers
-I/Library/Frameworks/SDL_mixer.framework/Headers
-I/Library/Frameworks/UnixImageIO.framework/Headers
-I/Library/Frameworks/GD.framework/Headers -F ./build/Xcode
-F/Library/Frameworks -Wall -fmessage-length 144 -pthread -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-Iz93tI.s -x c++
/Users/az/Programmierung/openlierox/src/gusanos/distortion.cpp 
1.    /Users/az/Programmierung/openlierox/src/gusanos/distortion.cpp:139:38:
current parser token ')'
2.    /Users/az/Programmierung/openlierox/src/gusanos/distortion.cpp:133:1:
parsing function body 'randomMap'
3.    /Users/az/Programmierung/openlierox/src/gusanos/distortion.cpp:133:1: in
compound statement ('{}')
4.    /Users/az/Programmierung/openlierox/src/gusanos/distortion.cpp:138:2: in
compound statement ('{}')
5.    /usr/local/include/boost/random/uniform_01.hpp:143:10:
Sema::FindInstantiatedDecl 'boost::detail::select_uniform_01::apply'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

Not sure if that helps.

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the llvm-bugs mailing list