[Bug c++/43803] uninitialized const member wrongly accepted using a temporary

2010-05-10 Thread fabien dot chene at gmail dot com
--- 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 -

[Bug c++/43803] uninitialized const member wrongly accepted using a temporary

2010-04-19 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/43803] uninitialized const member wrongly accepted using a temporary

2010-04-19 Thread fabien dot chene at gmail dot com
--- 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