--- Comment #3 from redi at gcc dot gnu dot org 2010-09-23 10:14 ---
The example was wrong, fixed by DR 497
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#497
--
redi at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #2 from tatraian at inf dot elte dot hu 2008-02-06 13:43
---
The example is in the section: [expr.mptr.oper]
But, if the stadnadr code examples can contain errors maybe this is one of
them.
The whole example is the next:
struct S {
mutable int i;
};
const S cs;
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-06 12:38 ---
Please quote the relevant parts of the standard. IMHO cs needs an initializer
or an explicitly declared default constructor. And no, examples in the std
are not always without errors.
--
rguenth at gcc dot gnu