public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: markus@heichel.org To: gcc-gnats@gcc.gnu.org Subject: c++/4754: problem with nested extern "C" Date: Wed, 31 Oct 2001 05:46:00 -0000 [thread overview] Message-ID: <20011031133615.13158.qmail@sourceware.cygnus.com> (raw) >Number: 4754 >Category: c++ >Synopsis: problem with nested extern "C" >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Wed Oct 31 05:46:02 PST 2001 >Closed-Date: >Last-Modified: >Originator: Markus Heichel >Release: 3.0.2 >Organization: >Environment: System: Linux wave 2.4.13 #1 SMP Thu Oct 25 14:26:17 CEST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: configure --enable-shared --enable-threads --enable-languages=c++ >Description: compiling the attached example gives an error: > c++ extern.cc extern.cc:5: storage class specified for field `i' Exit 1 >How-To-Repeat: c++ extern.cc >Fix: omit the second 'extern "C"' or use brackets around the definition of 'struct Test' >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="extern.cc" Content-Disposition: inline; filename="extern.cc" extern "C" { extern "C" struct Test { int i; }; } int main() { }
next reply other threads:[~2001-10-31 5:46 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-10-31 5:46 markus [this message] 2003-01-03 16:09 neroden
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=20011031133615.13158.qmail@sourceware.cygnus.com \ --to=markus@heichel.org \ --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).