From -13834470259730421
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,d598d1f7d962e2be
X-Google-Attributes: gidf78e5,public
Path: g2news1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: kuyper@wizard.net (James Kuyper)
Newsgroups: comp.std.c++
Subject: Re: extern "C" inline allowed?
Date: Wed, 9 Jun 2004 17:08:56 +0000 (UTC)
Organization: http://groups.google.com
Lines: 23
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <8b42afac.0406090836.72d8a7f4@posting.google.com>
References: <40C5E842.DF6622E5@yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: mail2news.demon.co.uk 1086800937 27467 10.0.0.1 (9 Jun 2004 17:08:57 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 9 Jun 2004 17:08:57 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1BY6ZM-00078s-00
	for mail2news@news.news.demon.net; Wed, 09 Jun 2004 17:08:56 +0000
X-Received: from mulga.cs.mu.OZ.AU (localhost [127.0.0.1]) by mulga.cs.mu.OZ.AU with ESMTP
	id i59H8sB5014888; Thu, 10 Jun 2004 03:08:54 +1000 (EST)
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i59H8s73014879;
	Thu, 10 Jun 2004 03:08:54 +1000 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ucar.edu
X-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: Wed, 9 Jun 2004 16:36:45 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Status: No, hits=-3.4 required=5.2 tests=AWL,BAYES_00 autolearn=ham 
	version=2.60-mulga_r1
Xref: g2news1.google.com comp.std.c++:745

vishal_kochhar@hotmail.com (vishal) wrote in message news:<40C5E842.DF6622E5@yahoo.com>...
> Hi,
> 
> Is extern "C" inline allowed by the standard and if so would it have C
> linkage if it were used out-of-line? I have seen different behaviour
> with different compilers. By its omission in the standard, I would think
> that it is allowed and has a C linkage (although some compilers don't
> agree, especially they mangle the name). Should it be included in the
> standard?

The standard has a number of rules that distinguish function types or
function names with "C" language linkage in a special fashion. To the
best of my knowledge, none of those rules involves "inline". I know of
no reason why a function couldn't have both features. Obviously, the
language linkage is only relevant for an inline function if an actual
function body is generated by the compiler.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



