http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56122
Bug #: 56122 Summary: [RFE] detect double assignation Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: m...@zarb.org CC: do...@gcc.gnu.org While looking at some commits on a desktop environment, I found out that gcc do not detect the following construct as being useless : $ cat e.c int main() { int e = e = 3; return 0; } $ gcc -Wall -Wextra -Winit-self e.c -o e $ Speaking with Dodji, he told me to fill a RFE with him as a CC, since this would be something that could trigger a warning.