Re: Bug#811687: FTBFS with GCC 6: enumerator value for... is not
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi Martin,
Am Mi den 20. Jan 2016 um 1:58 schrieb Martin Michlmayr:
> Severity: important
I wouldn't see that as important as gcc6 is not the current compiler.
> This package fails to build with GCC 6. GCC 6 has not been released
> yet, but it's expected that GCC 6 will become the default compiler for
> stretch.
[...]
> > In file included from main.h:113:0,
> > from exiv2.cc:60:
> > typedefs.h:163:40: error: left operand of shift expression '(-1 << 8)' is negative [-fpermissive]
> > CHANGE_ERROR_MASK = (~0) << 8, /* the values below are fatal errors */
> > ~~~~~^~~~
> >
> > typedefs.h:163:43: error: enumerator value for 'CHANGE_ERROR_MASK' is not an integer constant
> > CHANGE_ERROR_MASK = (~0) << 8, /* the values below are fatal errors */
That is a fully legal C construct. I cannot see why gcc6 is throwing an
error here.
That seems a bug in gcc6 for me. See also [0].
Regards
Klaus
[0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68979
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQGcBAEBCgAGBQJWn14bAAoJEKZ8CrGAGfasiO0L/0bQCQ4YkEsK0IKVN4tafkVC
eRR7QZViZLLoiar5FKnxbZZoBcHREdd2KxgTn4NDRDWEMjZlhXrVdWqN55BAa6Su
R7yeoe5HxZcZmNz7JiMCDDFRHDCfHTCyPQ6ttlhMyrTYwB8Gu3oLBnV2snU0uADf
p9lfPzbAhHdjnezO3RG7hXeY2/7JpPQrtQ5AflcoAJ26A3boDI/aaGgrw4wMf8NP
BlSoOmA4Um7nIAW5/dvX+EXm1AiiFL/ESQD6dJralbKNspOuIc84LhwLOC0BpJ8k
YW3Pe9E8PTEjVlNmsBnixwfZh5O/2M3cgUJR6J9wgmhutDl4MLGd3+cXA3ncSrNR
EL3GqkSozzM/4SBzbXlYneEi4l8smLxn10wmT3l1Yu7fDa31eJsTpf9TBvgNHPbN
o9trrQBexC4XnuB31cmfz4ycYfN09EVOjBx3hjMCMMGCvgiivdYKCNrLCKmWh4Gw
RArJBgQVMSm08rr7NKygR5forkbPBKFlK4zH2aryKA==
=XCN7
-----END PGP SIGNATURE-----
Reply to: