From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29545 invoked by alias); 19 Sep 2007 23:17:56 -0000 Received: (qmail 29517 invoked by uid 48); 19 Sep 2007 23:17:46 -0000 Date: Wed, 19 Sep 2007 23:17:00 -0000 Subject: [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" 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: 2007-09/txt/msg01629.txt.bz2 extern int foo (char *) __attribute__ ((warn_unused_result)); extern int bar (char *) throw () __attribute__ ((warn_unused_result)); extern int bar (char *) throw (); fails to compile with 4.2/4.3 (instead of warn_unused_result any other attribute that has type_required set can be used, like nonnull, regparm, ...). The problem is that attribs will modify the type using build_type_attribute_variant, which, being a middle-end rather than FE function, doesn't know about TYPE_RAISES_EXCEPTIONS. -- Summary: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33506