standards/147210: xmmintrin.h and cstdlib conflicts with each other with -pedantic

arrowdodger 6yearold at gmail.com
Sun May 30 12:20:02 UTC 2010


>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 at 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:


More information about the freebsd-standards mailing list