public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26186]  New: internal compiler error in template resolution
@ 2006-02-08 23:23 smirolo at hotmail dot com
  2006-02-08 23:26 ` [Bug c++/26186] " smirolo at hotmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: smirolo at hotmail dot com @ 2006-02-08 23:23 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26186] internal compiler error in template resolution
  2006-02-08 23:23 [Bug c++/26186] New: internal compiler error in template resolution smirolo at hotmail dot com
@ 2006-02-08 23:26 ` smirolo at hotmail dot com
  2006-02-08 23:34 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: smirolo at hotmail dot com @ 2006-02-08 23:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from smirolo at hotmail dot com  2006-02-08 23:26 -------
Created an attachment (id=10809)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10809&action=view)
save-temps file (compressed)


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26186] internal compiler error in template resolution
  2006-02-08 23:23 [Bug c++/26186] New: internal compiler error in template resolution smirolo at hotmail dot com
  2006-02-08 23:26 ` [Bug c++/26186] " smirolo at hotmail dot com
@ 2006-02-08 23:34 ` pinskia at gcc dot gnu dot org
  2006-02-09  9:48 ` rguenth at gcc dot gnu dot org
  2006-02-09 13:51 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-08 23:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-08 23:34 -------
On the mainline I get:
testLatency.cc:8: error: invalid use of 'class sideParms<s>'


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|internal compiler error in  |internal compiler error in
                   |template resolution         |template resolution


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26186] internal compiler error in template resolution
  2006-02-08 23:23 [Bug c++/26186] New: internal compiler error in template resolution smirolo at hotmail dot com
  2006-02-08 23:26 ` [Bug c++/26186] " smirolo at hotmail dot com
  2006-02-08 23:34 ` pinskia at gcc dot gnu dot org
@ 2006-02-09  9:48 ` rguenth at gcc dot gnu dot org
  2006-02-09 13:51 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-09  9:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-02-09 09:48 -------
I can reproduce the ICE on i686 with 3.4.4, but it seems to be fixed with
g++ (GCC) 3.4.6 20060110 (prerelease) which tells us

testLatency.cc: In function `latency latencyOf(size_t, widthTag, widthTag,
int)':
testLatency.cc:8: error: invalid use of `class sideParms<s>'

For some reason I don't have 3.4.5, so I'm unsure about the target milestone
where this is fixed (just saying 3.4.6 for now).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |3.4.4
      Known to work|                            |3.4.6 4.0.0
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.6


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26186] internal compiler error in template resolution
  2006-02-08 23:23 [Bug c++/26186] New: internal compiler error in template resolution smirolo at hotmail dot com
                   ` (2 preceding siblings ...)
  2006-02-09  9:48 ` rguenth at gcc dot gnu dot org
@ 2006-02-09 13:51 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-09 13:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2006-02-09 13:51 -------
Actually it's already fixed in 3.4.5.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|3.4.6 4.0.0                 |3.4.5 3.4.6 4.0.0
   Target Milestone|3.4.6                       |3.4.5


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-09 13:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-08 23:23 [Bug c++/26186] New: internal compiler error in template resolution smirolo at hotmail dot com
2006-02-08 23:26 ` [Bug c++/26186] " smirolo at hotmail dot com
2006-02-08 23:34 ` pinskia at gcc dot gnu dot org
2006-02-09  9:48 ` rguenth at gcc dot gnu dot org
2006-02-09 13:51 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).