I've got a complex template expression which produces an internal error into
gcc. By chance I tried on the native Mac gcc-4.0.0 and it gaves me  correct
error messages as the templates are not qualified correctly. Nonetheless, I
think it is worth reporting for future regression tests.

Sebastien.

dhcp-8:~/build/rep smirolo$ g++ -v -save-temps -Iootbc/include
-I${HOME}/installed/local/include testLatency.cc            
Reading specs from
/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/lib/gcc/powerpc-apple-darwin8.3.0/3.4.4/specs
Configured with: /Volumes/Home/Users/smirolo/reference/gcc-3.4.4/configure
--prefix=/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.4

/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/libexec/gcc/powerpc-apple-darwin8.3.0/3.4.4/cc1plus
-E -quiet -v -Iootbc/include
-I/Volumes/Home/Users/smirolo/installed/local/include -D__DYNAMIC__
testLatency.cc -fPIC -o testLatency.ii
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/lib/gcc/powerpc-apple-darwin8.3.0/3.4.4/../../../../powerpc-apple-darwin8.3.0/include"
#include "..." search starts here:
#include <...> search starts here:
 ootbc/include
 /Volumes/Home/Users/smirolo/installed/local/include

/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/lib/gcc/powerpc-apple-darwin8.3.0/3.4.4/../../../../include/c++/3.4.4

/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/lib/gcc/powerpc-apple-darwin8.3.0/3.4.4/../../../../include/c++/3.4.4/powerpc-apple-darwin8.3.0

/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/lib/gcc/powerpc-apple-darwin8.3.0/3.4.4/../../../../include/c++/3.4.4/backward
 /Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/include

/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/lib/gcc/powerpc-apple-darwin8.3.0/3.4.4/include
 /usr/include
End of search list.

/Volumes/Home/Users/smirolo/installed/local/gcc-3.4.4/libexec/gcc/powerpc-apple-darwin8.3.0/3.4.4/cc1plus
-fpreprocessed testLatency.ii -fPIC -quiet -dumpbase testLatency.cc -auxbase
testLatency -version -o testLatency.s
GNU C++ version 3.4.4 (powerpc-apple-darwin8.3.0)
        compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5247).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
testLatency.cc: In function `latency latencyOf(size_t, widthTag, widthTag,
int)':
testLatency.cc:8: internal compiler error: in lookup_member, at
cp/search.c:1287
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
dhcp-8:~/build/rep smirolo$


-- 
           Summary: internal compiler error in template resolution
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: smirolo at hotmail dot com
  GCC host triplet: powerpc-apple-darwin8.3.0
GCC target triplet: powerpc-apple-darwin8.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26186

Reply via email to