This is the mail archive of the
mailing list for the GCC project.
Re: [C++ Patch] Fix for PR c++/19076 and PR c++/6628
On Wed, 23 Feb 2005 11:01:50 +0100, Paolo Carlini <firstname.lastname@example.org> 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
> 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.