public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered.
@ 2004-07-28 19:12 jurka at ejurka dot com
  2004-07-28 20:18 ` [Bug c++/16806] [3.3 regression] " bangerth at dealii dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jurka at ejurka dot com @ 2004-07-28 19:12 UTC (permalink / raw)
  To: gcc-bugs

I don't know what I'm doing with c++ and was trying to get something to compile
when I got an internal compiler error.  Clearly my code is wrong, but still
shouldn't have an internal error.

I was trying to compile the following:

#include <iostream>

template<class T> class myclass {
public: 
        
        template< T > int Get< typename U >();
        
        template<T> int Get<float>() { return 1;}
        template<T> int Get<int>() { return 2;}
};

int main() {
        myclass<int> c;
        std::cerr << c.Get<float> << std::endl;
        return 0;
}       

g++ -Wall specnothing.cpp 
specnothing.cpp:6: error: parse error before `>' token
specnothing.cpp:8: error: template-id `Get<float>' in declaration of primary 
   template
specnothing.cpp:9: error: template-id `Get<int>' in declaration of primary 
   template
specnothing.cpp: In instantiation of `myclass<int>':
specnothing.cpp:13:   instantiated from here
specnothing.cpp:9: error: `template<int <anonymous> > int myclass::Get() [with 
   T <anonymous> = enumerator, T = int]' and `template<int <anonymous> > int 
   myclass::Get() [with T <anonymous> = enumerator, T = int]' cannot be 
   overloaded
specnothing.cpp: In function `int main()':
specnothing.cpp:14: error: no match for 'operator<<' in 'std::cerr << 
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:http://gcc.gnu.org/bugs.html>.



g++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-4)

uname -a
Linux doug 2.4.22 #2 SMP Sat Sep 27 20:15:00 PDT 2003 i686 GNU/Linux

-- 
           Summary: Internal compiler error: Error reporting routines re-
                    entered.
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jurka at ejurka dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
@ 2004-07-28 20:18 ` bangerth at dealii dot org
  2004-07-28 20:26 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2004-07-28 20:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-07-28 20:18 -------
This code is completely and absolutely broken. However, to my great 
surprise I could even reconstruct the ICE with something that is 
almost valid and should indeed give a single regular error: 
----------------- 
struct X {}; 
void operator << (const X &,int); 
 
template<class T> struct myclass { 
    template<typename> int Get(); 
}; 
 
int main() { 
  X() << myclass<int>().Get<float>; 
}       
------------------------- 
Note that only the parentheses to the call of myclass::get were 
forgotten in this code. Yet, we get: 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc 
x.cc: In function `int main()': 
x.cc:9: error: no match for 'operator<<' in 'X() <<  
Internal compiler error: Error reporting routines re-entered. 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
This is a regression in 3.3.x against previous versions, but it 
is already fixed in 3.4 and mainline. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-28 20:18:17
               date|                            |
            Summary|Internal compiler error:    |[3.3 regression] Internal
                   |Error reporting routines re-|compiler error: Error
                   |entered.                    |reporting routines re-
                   |                            |entered.
   Target Milestone|---                         |3.3.5


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
  2004-07-28 20:18 ` [Bug c++/16806] [3.3 regression] " bangerth at dealii dot org
@ 2004-07-28 20:26 ` pinskia at gcc dot gnu dot org
  2004-07-28 20:28 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-28 20:26 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
  2004-07-28 20:18 ` [Bug c++/16806] [3.3 regression] " bangerth at dealii dot org
  2004-07-28 20:26 ` pinskia at gcc dot gnu dot org
@ 2004-07-28 20:28 ` pinskia at gcc dot gnu dot org
  2004-08-10 21:19 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-28 20:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-28 20:28 -------
: Search converges between 2003-06-14-3.3 (#105) and 2003-06-22-3.3 (#106).

-- 


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
                   ` (2 preceding siblings ...)
  2004-07-28 20:28 ` pinskia at gcc dot gnu dot org
@ 2004-08-10 21:19 ` reichelt at gcc dot gnu dot org
  2004-09-28 13:44 ` gdr at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-10 21:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-10 21:19 -------
This is even a regression *on* the 3.3 branch, introduced between
gcc 3.3 and gcc 3.3.1.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored
      Known to fail|3.3.4                       |3.3.1 3.3.4
      Known to work|3.2.3 3.4.0 3.5.0           |3.2.3 3.4.0 3.5.0 3.3


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
                   ` (3 preceding siblings ...)
  2004-08-10 21:19 ` reichelt at gcc dot gnu dot org
@ 2004-09-28 13:44 ` gdr at gcc dot gnu dot org
  2004-12-15 12:09 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-09-28 13:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-09-28 13:38 -------
Adjust milestone

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|3.2.3 3.4.0 4.0 3.3         |3.2.3 3.4.0 4.0.0 3.3
   Target Milestone|3.3.5                       |3.3.6


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
                   ` (4 preceding siblings ...)
  2004-09-28 13:44 ` gdr at gcc dot gnu dot org
@ 2004-12-15 12:09 ` reichelt at gcc dot gnu dot org
  2004-12-15 16:11 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-15 12:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-15 12:09 -------
Patch in progress.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
                   ` (5 preceding siblings ...)
  2004-12-15 12:09 ` reichelt at gcc dot gnu dot org
@ 2004-12-15 16:11 ` reichelt at gcc dot gnu dot org
  2004-12-15 17:09 ` cvs-commit at gcc dot gnu dot org
  2004-12-15 17:15 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-15 16:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-15 16:11 -------
patch here:
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01131.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
                   ` (6 preceding siblings ...)
  2004-12-15 16:11 ` reichelt at gcc dot gnu dot org
@ 2004-12-15 17:09 ` cvs-commit at gcc dot gnu dot org
  2004-12-15 17:15 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-15 17:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-15 16:55 -------
Subject: Bug 16806

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	reichelt@gcc.gnu.org	2004-12-15 16:45:27

Modified files:
	gcc/cp         : ChangeLog error.c 

Log message:
	PR c++/16806
	* error.c (dump_expr) [BASELINK]: Use dump_expr.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.279&r2=1.3076.2.280
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.192.2.10&r2=1.192.2.11



-- 


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


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

* [Bug c++/16806] [3.3 regression] Internal compiler error: Error reporting routines re-entered.
  2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
                   ` (7 preceding siblings ...)
  2004-12-15 17:09 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-15 17:15 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-15 17:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-15 17:00 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-12-15 17:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-28 19:12 [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered jurka at ejurka dot com
2004-07-28 20:18 ` [Bug c++/16806] [3.3 regression] " bangerth at dealii dot org
2004-07-28 20:26 ` pinskia at gcc dot gnu dot org
2004-07-28 20:28 ` pinskia at gcc dot gnu dot org
2004-08-10 21:19 ` reichelt at gcc dot gnu dot org
2004-09-28 13:44 ` gdr at gcc dot gnu dot org
2004-12-15 12:09 ` reichelt at gcc dot gnu dot org
2004-12-15 16:11 ` reichelt at gcc dot gnu dot org
2004-12-15 17:09 ` cvs-commit at gcc dot gnu dot org
2004-12-15 17:15 ` reichelt 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).