Re: C99 struct initialiser with embedded self assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux