This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/175: Re: Internal compiler error in GCC snapshot for syntactically-incorrect input



>Number:         175
>Category:       c++
>Synopsis:       Internal compiler error in GCC snapshot for syntactically-incorrect input
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          analyzed
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 19 15:06:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     "James A. Bednar" <jbednar@cs.utexas.edu>
>Release:        2.95.2
>Organization:
>Environment:
>Description:
 Date: Tue, 18 Apr 2000 23:40:18 -0500 (CDT)
 Original-Message-Id: <200004190440.XAA14123@mail.cs.utexas.edu>
 Reply-to: jbednar@cs.utexas.edu


 Using the current GCC Online Compiler Submission at
 http://www.codesourcery.com/gcc-compile.html on the following code
 generates an "Internal compiler error" (see attached):

   template <class T>
   void f(const T& a) { }

   T g() { return T(0); }

 Obviously, this code is syntactically incorrect, since the type T is
 undefined in g(). (I forgot to add another "template <class T>" before
 it!)  However, the compiler should handle the problem a little more
 gracefully.  The same symptoms occur with egcs-1.1.2, so the problem
 has been present at least that long.

 Also note that the error message appears to be ill-formed.

 Should this code prove useful as a test case, I hereby place it into
 the public domain for anyone to use for whatever purpose they see fit.

 Jim Bednar

 -------------------------------------------------------------------------------
 Tue Apr 18 23:33:47 CDT 2000
 GCC Output


 These are the results of processing your source code with the following
 command:

     c++ -x c++ -c [input] 


 Exit code: 256

 Messages:

     /tmp/@21228.1:4: Internal compiler error.
     /tmp/@21228.1:4: Please submit a full bug report.
     /tmp/@21228.1:4: See 
     /tmp/@21228.1:4: for instructions.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]