public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: qzb04471@nifty.ne.jp To: gcc-gnats@gcc.gnu.org Subject: c++/6531: attribute error Date: Wed, 01 May 2002 06:36:00 -0000 [thread overview] Message-ID: <20020501132850.15010.qmail@sources.redhat.com> (raw) >Number: 6531 >Category: c++ >Synopsis: attribute error >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Wed May 01 06:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: qzb04471@nifty.ne.jp >Release: h8300-elf-g++ (GCC) 3.1 20020429 (prerelease) >Organization: >Environment: RedHat Linux 6.2 >Description: weaktest.cpp:7: `void bar()' defined both normally and as an alias weaktest.cpp:7: weak declaration of `void bar()' must precede definition weaktest.cpp extern "C" void bar( ); extern "C" void foo( ) { } extern "C" void bar( ) __attribute__ ((weak)) __attribute__ ((alias ("foo"))); >How-To-Repeat: >Fix: *** decl.c.old Wed May 1 22:26:14 2002 --- decl.c Wed May 1 22:27:53 2002 *************** *** 3505,3511 **** except for any that we copy here from the old type. */ DECL_ATTRIBUTES (newdecl) = (*targetm.merge_decl_attributes) (olddecl, newdecl); - decl_attributes (&newdecl, DECL_ATTRIBUTES (newdecl), 0); if (TREE_CODE (newdecl) == TEMPLATE_DECL) { --- 3505,3510 ---- >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-05-01 13:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-05-01 6:36 qzb04471 [this message] 2002-09-11 14:36 Klaus Pedersen 2002-10-11 12:40 gdr
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020501132850.15010.qmail@sources.redhat.com \ --to=qzb04471@nifty.ne.jp \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).