From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6144 invoked by alias); 22 Oct 2007 11:07:26 -0000 Received: (qmail 6131 invoked by uid 22791); 22 Oct 2007 11:07:25 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og51.obsmtp.com (HELO exprod6og51.obsmtp.com) (64.18.1.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 22 Oct 2007 11:07:17 +0000 Received: from source ([192.150.20.142]) by exprod6ob51.postini.com ([64.18.5.12]) with SMTP; Mon, 22 Oct 2007 04:05:44 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id l9MB5gKn007370; Mon, 22 Oct 2007 04:05:42 -0700 (PDT) Received: from fe1.corp.adobe.com (fe1.corp.adobe.com [10.8.192.70]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id l9MB5fRC016452; Mon, 22 Oct 2007 04:05:41 -0700 (PDT) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe1.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 22 Oct 2007 04:05:41 -0700 Received: from 10.32.16.88 ([10.32.16.88]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.72]) with Microsoft Exchange Server HTTP-DAV ; Mon, 22 Oct 2007 11:05:40 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Mon, 22 Oct 2007 11:19:00 -0000 Subject: Re: bug? From: John Love-Jensen To: skaller , MSX to GCC Message-ID: In-Reply-To: <1192970056.9155.15.camel@rosella.wigram> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00277.txt.bz2 Hi skaller, > This looks like a bug: Definitely a bug! It's a bug to use C headers in C++ code. C++ code should use the C++ headers. > Can anyone see any way this could happen (C++ code, > using both and in various places). Yes, I can see how that could happen. C++ code should not use , since those are C header files. Mixing C header files in C++ programs can incur all sorts of interesting subtle side effects. Use C headers for C code. Use C++ headers for C++ code. HTH, --Eljay