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: egcs-2.91.55 19980824 error on const references


>>>>> Todd Vierling <tv@pobox.com> writes:

 > On Tue, 25 Aug 1998, Hyman Rosen wrote:
 > : The following test program fails. It also fails in all earlier versions
 > : of gcc. Would someone please add it to the test suite?

 > You mean it "fails to keep c constant"?  Without the `const's, that code
 > _should_ assign 0 to `c'.  If the const should be errored about, then the
 > failure is not reporting the const error.

The error is initializing r with p; volatile const int* is not
reference-compatible with volatile int*.

Jason


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