[csw-maintainers] Error: Ambiguous "?:" expression

Philip Brown phil at bolthole.com
Tue Mar 9 17:27:17 CET 2010


On Tue, Mar 9, 2010 at 12:56 AM, Roger Håkansson <hson at opencsw.org> wrote:
>
> Report to upstream, I'm no C++ guru, but in my mind that seems like code
> that isn't really following the standard.
> Sun Studio 11 isn't really that perfect either, but even 12 U1 doesn't
> compile that code so I would say that they use some kind of gcc-ism...
>

in some cases, its not so much that they use a feature of gcc,but that
they rely on default behaviour of it. That being said... I vaguely
recall that, back in the day, there are warning flags in gcc you can
turn on, that make it (almost) as cautious about these things as sun
studio.

So, an even better thing for you to look into, would be to see if you
can find the g++ flag that triggers a warning on the original code,
then suggest to upstream, "please compile with these flags from now
on".


More information about the maintainers mailing list