From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17783 invoked by alias); 3 Oct 2013 22:51:06 -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 Received: (qmail 17721 invoked by uid 55); 3 Oct 2013 22:51:03 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58584] [c++11] ICE with invalid argument for alignas Date: Thu, 03 Oct 2013 22:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg00193.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58584 --- Comment #5 from paolo at gcc dot gnu.org --- Author: paolo Date: Thu Oct 3 22:50:59 2013 New Revision: 203193 URL: http://gcc.gnu.org/viewcvs?rev=203193&root=gcc&view=rev Log: /cp 2013-10-04 Paolo Carlini PR c++/58584 * decl2.c (save_template_attributes): Handle error_mark_node as *attr_p argument. (cp_check_const_attributes): Likewise for attributes. * parser.c (cp_parser_std_attribute_spec): When alignas_expr is an error_mark_node call cp_parser_skip_to_end_of_statement. /testsuite 2013-10-04 Paolo Carlini PR c++/58584 * g++.dg/cpp0x/gen-attrs-55.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/gen-attrs-55.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl2.c trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog