This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Diagnose invalid uses of auto type specifier (PR c++/37962)
On Wed, Nov 05, 2008 at 01:13:47PM -0800, Andrew Pinski wrote:
> On Wed, Nov 5, 2008 at 12:27 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> > Attached are two alternative patches to diagnose (and avoid ICEing) on
> > invalid uses of auto type specifier. C++0x enumerates a few places where
> > auto type specifier may be used and says everything else is ill-formed.
>
> Does this also fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38021
> which seems related?
No, that's completely unrelated (and can be reproduced even with
enum : { };
(so no auto etc.)), see
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00164.html
and follow-ups.
Jakub