From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26539 invoked by alias); 3 Feb 2007 15:14:02 -0000 Received: (qmail 26480 invoked by alias); 3 Feb 2007 15:13:52 -0000 Date: Sat, 03 Feb 2007 15:14:00 -0000 Message-ID: <20070203151352.26479.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/9278] Illegal use of typedef to "void" In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "joseph at codesourcery dot com" 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-02/txt/msg00226.txt.bz2 ------- Comment #25 from joseph at codesourcery dot com 2007-02-03 15:13 ------- Subject: Re: Illegal use of typedef to "void" On Sat, 3 Feb 2007, tbm at cyrius dot com wrote: > Is the following supposed to fail given that Joseph said that it's valid C code > (but not valid in C++) and the header contains extern "C": extern "C" does not change the language rules, only linkage. The contents must still be valid C++ and are interpreted according to C++ rules for those cases where the same code is valid C and C++ but has different semantics in the two languages. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9278