From owner-freebsd-standards@FreeBSD.ORG Sun May 30 12:20:02 2010 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6CC7106567B for ; Sun, 30 May 2010 12:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 790D98FC19 for ; Sun, 30 May 2010 12:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4UCK2Aj023916 for ; Sun, 30 May 2010 12:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4UCK2Gj023915; Sun, 30 May 2010 12:20:02 GMT (envelope-from gnats) Resent-Date: Sun, 30 May 2010 12:20:02 GMT Resent-Message-Id: <201005301220.o4UCK2Gj023915@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, arrowdodger <6yearold@gmail.com> Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92EBC1065679 for ; Sun, 30 May 2010 12:19:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 81D848FC14 for ; Sun, 30 May 2010 12:19:32 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4UCJWcT028865 for ; Sun, 30 May 2010 12:19:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o4UCJWkm028864; Sun, 30 May 2010 12:19:32 GMT (envelope-from nobody) Message-Id: <201005301219.o4UCJWkm028864@www.freebsd.org> Date: Sun, 30 May 2010 12:19:32 GMT From: arrowdodger <6yearold@gmail.com> To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: standards/147210: xmmintrin.h and cstdlib conflicts with each other with -pedantic X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2010 12:20:02 -0000 >Number: 147210 >Category: standards >Synopsis: xmmintrin.h and cstdlib conflicts with each other with -pedantic >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 30 12:20:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: arrowdodger >Release: 8-STABLE >Organization: none >Environment: FreeBSD localhost 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun May 16 19:28:29 MSD 2010 root@freebsd8-amd64.ispsystem.net:/root/src/sys/amd64/compile/ISPSYSTEM amd64 >Description: Following code: #include #include int main(int argc, char * argv[]) { return 0; } compiles finely with this command: g++ test.cpp but fails with this: g++ -pedantic test.cpp The error is: In file included from /usr/include/xmmintrin.h:42, from tm.cpp:2: /usr/include/mm_malloc.h:37: error: declaration of 'int posix_memalign(void**, size_t, size_t) throw ()' throws different exceptions /usr/include/stdlib.h:160: error: from previous declaration 'int posix_memalign(void**, size_t, size_t)' >How-To-Repeat: Compile testcase from description with -pedantic flag. >Fix: >Release-Note: >Audit-Trail: >Unformatted: