------- Comment #2 from redi at gcc dot gnu dot org 2009-12-08 22:28 ------- C::dflt has type const int by pd->d[i] has type int, so they do not have the same type and the warning is correct. This is DR 587 which was just changed in the latest draft http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#587
-- redi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-12-08 22:28:20 date| | Summary|temporary used in ?: |[DR 587] temporary used in |expression tho second and |?: expression tho second and |third expr. lvalues |third expr. lvalues http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34075