declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GLibC |
New
|
Undecided
|
Unassigned | ||
eglibc |
New
|
Undecided
|
Unassigned | ||
glibc (Debian) |
Fix Released
|
Unknown
|
|||
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm getting a weird error when compiling a trivial test using mq_open(), when using both -pedantic and -O2:
$ cat mqtest.cpp
#include <mqueue.h>
int main()
{
return 0;
}
$ g++ -pedantic -O2 -c mqtest.cpp
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
Using just -O2 or just -pedantic works fine:
$ g++ -O2 -c mqtest.cpp
$ g++ -pedantic -c mqtest.cpp
$
Using a Debian unstable system to compile, works fine with both -O2 -pedantic at the same time.
Ubuntu 10.4, x86_64, libc6-dev 2.11.1-0ubuntu7, g++ 4:4.4.3-1ubuntu1
description: | updated |
description: | updated |
Changed in glibc (Debian): | |
status: | Unknown → Confirmed |
Changed in glibc (Debian): | |
status: | Confirmed → Fix Released |
Is this so hard to fix? Is really annoying to have to change the compilation options when I have to compile in Ubuntu. Seems like a very silly error, but a very annoying one.