------- Comment #6 from abotezatu at gmail dot com 2009-09-07 12:13 ------- The real question is, should the ternary operator require reference to a static const member, when it should know that this is a constant that does not require storage, and thus reference to such a constant can be omitted?
It could be that the behaviour is not defined in the standard, but, perhaps, it is sensible to expect that the ternary operator behave as closely possible to a series of if statements, when it does not specifically require otherwise? I see 3.x working differently from 4.x. in this regard. Why is that so? -- abotezatu at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abotezatu at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13795