Bug#709228: radium-compressor: FTBFS: error: expected primary-expression before '.' token
Andrey Rahmatullin
wrar at wrar.name
Wed May 22 14:56:42 UTC 2013
Control: tags -1 + upstream
On Tue, May 21, 2013 at 06:04:48PM +0000, Thorsten Glaser wrote:
> https://buildd.debian.org/status/package.php?p=radium-compressor&suite=sid
So it fails only on gcc 4.6 architectures.
> audio/typepunning.h: In function 'float pun_int_to_float(int)':
> audio/typepunning.h:29:41: error: expected primary-expression before '.' token
The code:
union { uint32_t i; float f; } mx = { .i=(uint32_t)x };
It is correct C99, but not C++98 (and probably not even C++11), but g++
4.7 compiles it fine (unlike 4.6). I couldn't find out why.
--
WBR, wRAR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20130522/f7a4e094/attachment.pgp>
More information about the pkg-multimedia-maintainers
mailing list