[Bug c++/49152] Unhelpful diagnostic for iterator dereference
giecrilj at stegny dot 2a.pl
gcc-bugzilla@gcc.gnu.org
Wed Sep 21 21:03:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49152
--- Comment #2 from Christopher Yeleighton <giecrilj at stegny dot 2a.pl> 2011-09-21 20:06:42 UTC ---
== Code ==
struct X { int x; };
void trigger (X x []) { x [01] = 0; }
== Result (v4.6) ==
doit.cpp:2:34: error: no match for ‘operator=’ in ‘*(x + 4u) = 0’
But who referenced (x + 4u)?
More information about the Gcc-bugs
mailing list