C99 struct initialiser with embedded self assignment
Manuel López-Ibáñez
lopezibanez@gmail.com
Wed Apr 9 08:43:00 GMT 2014
On 09/04/14 01:42, Dimitrios Apostolou wrote:> Hello GCC community!
> Do you think that the compiler should have warned in query2? Something like
> "suggest parentheses around assignment"?
Please open a bug report: http://gcc.gnu.org/bugs/
But your chances of getting this implemented without doing it yourself
are pretty small. Unfortunately, there are very few people working on
the C FE right now, and the initializers code is probably one of the
oldest and most obscure parts of the C FE.
You may be lucky and the solution might be trivial, but first you
would need to follow the code in a debugger and figure out where in
the C FE this could be detected.
Cheers,
Manuel.
More information about the Gcc-help
mailing list