public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33506]  New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
@ 2007-09-19 23:17 jakub at gcc dot gnu dot org
  2007-09-20  0:08 ` [Bug c++/33506] " jakub at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-19 23:17 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-03-30 22:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
2007-09-20  0:08 ` [Bug c++/33506] " jakub at gcc dot gnu dot org
2007-09-24 15:16 ` jakub at gcc dot gnu dot org
2007-09-26 19:08 ` pinskia at gcc dot gnu dot org
2007-09-27  9:20 ` [Bug c++/33506] [4.2 " jakub at gcc dot gnu dot org
2007-09-28  4:12 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
2009-03-30 22:25 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).