Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2010 12:19:32 GMT
From:      arrowdodger <6yearold@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   standards/147210: xmmintrin.h and cstdlib conflicts with each other with -pedantic
Message-ID:  <201005301219.o4UCJWkm028864@www.freebsd.org>
Resent-Message-ID: <201005301220.o4UCK2Gj023915@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <cstdlib>
#include <xmmintrin.h>


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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005301219.o4UCJWkm028864>