This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [C++ Patch] Fix for PR c++/19076 and PR c++/6628


On Wed, 23 Feb 2005 11:01:50 +0100, Paolo Carlini <pcarlini@suse.de> wrote:

> Paolo Carlini wrote:
>
>> Actually, I have a 3.0.4 around which emits the warning for Doug's
>> testcase, don't
>> know whether the generated code is actually different, however.
>
> But seems broken:
>
> doug.cc:2: `void ()()' cannot be `const'-, `volatile'-, or
> `restrict'-qualified
> doug.cc: In function `void fatal()':
> doug.cc:7: warning: function declared `noreturn' has a `return' statement
> doug.cc:8: warning: `noreturn' function does return
>
> Then, probably saying recent releases, or 3.x would do...

That would also be wrong; 2.95 also gives the error, and that's the oldest
compiler I have handy.  Just say it doesn't work with G++.  It hasn't
worked with G++ for something like 10 years now, and has produced a hard
error for most of that time.

Jason


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