--- Comment #3 from fabien dot chene at gmail dot com 2010-05-10 21:12
---
This is valid code, the use of the temporary value-initializes the const
member.
--
fabien dot chene at gmail dot com changed:
What|Removed |Added
-
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-04-19 23:00 ---
Related to PR 5650
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43803
--- Comment #1 from fabien dot chene at gmail dot com 2010-04-19 20:27
---
hmm, not sure this is invalid. This is the same than
struct A { int const i; };
void f() { new A() }
(Nevertheless, commeau doesn't compile both cases.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43803