This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/3906: Internal compiler error in change_address, at emit-rtl.c:1635
- To: rodrigc at gcc dot gnu dot org
- Subject: Re: optimization/3906: Internal compiler error in change_address, at emit-rtl.c:1635
- From: Tanmoy Bhattacharya <tanmoy at qcd dot lanl dot gov>
- Date: Mon, 13 Aug 2001 16:43:57 -0600 (MDT)
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- References: <20010813222421.24786.qmail@sourceware.cygnus.com>
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