From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23334 invoked by alias); 13 Oct 2010 15:28:13 -0000 Received: (qmail 23325 invoked by uid 22791); 13 Oct 2010 15:28:12 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Oct 2010 15:28:05 +0000 From: "schaub-johannes at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46005] Don't allow "auto" as the simple-type-specifier of a typedef X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schaub-johannes at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 13 Oct 2010 15:28:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg01106.txt.bz2 Message-ID: <20101013152800.mnLpknAxD5Y08N2S7Zkc3raxyOWo9gd4EbQn4pXuevE@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46005 --- Comment #2 from Johannes Schaub 2010-10= -13 15:28:04 UTC --- (In reply to comment #1) > I'm getting 'error: =E2=80=98autot=E2=80=99 does not name a type' with bo= th current trunk and > 4.5. 4.4 gives "error: conflicting specifiers in declaration of =E2=80= =98autot=E2=80=99" which > is the better error message (which you get also with trunk and 4.5 with > "typedef auto int autot;"). You haven't enabled C++0x. My PR is about C++0x's "auto".