This is the mail archive of the gcc-bugs@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]

Re: optimization/3906: Internal compiler error in change_address, at emit-rtl.c:1635


In <20010813222421.24786.qmail@sourceware.cygnus.com>
 dated 22:24:21 -0000  August 13, 2001,
 rodrigc@gcc.gnu.org writes
 > Synopsis: Internal compiler error in change_address, at emit-rtl.c:1635
 >     Your example does not even compile.
 >     With, gcc version 3.0.1 20010813 (prerelease),
 >     I get many compilation errors, like:
 >     
 >     example.c:13: `p' was not declared in this scope
 >     example.c:14: ISO C++ forbids declaration of `setlim' with no type

etc.

I did not claim my example was valid C++.  And the command line I
supplied was for invoking a C compiler, not a C++ one.

Apart from the missing `line' directive after the # in the first line,
it is a valid ISO standard C translaion unit, both according to C89
and C9x (which got approved last year, I do not know what it is called
now).

I could probably provide a C++ example, but I do not have the time to
test right now.  But a C compiler *must* compile every strictly
conforming C program, which this one becomes if one supplies
definitions for main and setloglim, possibly in a separate translation
unit. 

Tanmoy


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