Bug 34809 - Internal error while building loki-library 0.1.6
Summary: Internal error while building loki-library 0.1.6
Status: RESOLVED DUPLICATE of bug 31947
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.2.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 11:46 UTC by Andy Duplain
Modified: 2008-01-25 22:37 UTC (History)
8 users (show)

See Also:
Host: sparc-sun-solaris2.9
Target: sparc-sun-solaris2.9
Build: sparc-sun-solaris2.9
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Preprocessed source file test/ScopeGuard/main.cpp (90.58 KB, text/plain)
2008-01-17 09:20 UTC, Andy Duplain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Duplain 2008-01-16 11:46:20 UTC
While building the Loki C++ library (http://loki-lib.sourceforge.net/), an internal error is generated:

-- quote start --
gmake[2]: Entering directory `/home/duplaina/src/loki-0.1.6/test/ScopeGuard'
g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -ffriend-injection -I../../include -DNDEBUG  -c -o main.o main.cpp
main.cpp: In member function 'void User::AddFriendGuardedMacros(User&)':
main.cpp:197: internal compiler error: in calc_dfs_tree, at dominance.c:373
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[2]: *** [main.o] Error 1
gmake[2]: Leaving directory `/home/duplaina/src/loki-0.1.6/test/ScopeGuard'
gmake[1]: *** [ScopeGuard] Error 2
gmake[1]: Leaving directory `/home/duplaina/src/loki-0.1.6/test'
gmake: *** [check] Error 2

-- quote end --

Note: in order to get it to build this far, it's necessary to change include/loki/SmartPtr.h so the reference from #include <stdint.h> is <tr1/stdint.h>.
Comment 1 Richard Biener 2008-01-16 13:30:09 UTC
Probably a dup of PR31947.  Hard to say without preprocessed source.
Comment 2 Andy Duplain 2008-01-17 09:20:10 UTC
Created attachment 14956 [details]
Preprocessed source file test/ScopeGuard/main.cpp
Comment 3 Richard Biener 2008-01-25 22:37:42 UTC
#1  0x0000000000847f16 in calc_dfs_tree (di=0x7fff65e5f420, 
    reverse=CDI_DOMINATORS)
    at /space/rguenther/src/svn/gcc-4_2-branch/gcc/dominance.c:373
#2  0x0000000000848a60 in calculate_dominance_info (dir=CDI_DOMINATORS)
    at /space/rguenther/src/svn/gcc-4_2-branch/gcc/dominance.c:631
#3  0x0000000000c0a418 in identify_jump_threads ()
    at /space/rguenther/src/svn/gcc-4_2-branch/gcc/tree-vrp.c:5261
#4  0x0000000000c0b1fb in vrp_finalize ()
    at /space/rguenther/src/svn/gcc-4_2-branch/gcc/tree-vrp.c:5408
#5  0x0000000000c0b32f in execute_vrp ()
    at /space/rguenther/src/svn/gcc-4_2-branch/gcc/tree-vrp.c:5482

which makes it a duplicate.

*** This bug has been marked as a duplicate of 31947 ***