re PR c++/21210 (Trouble with __complex__ types default construction)
authorRoger Sayle <roger@eyesopen.com>
Mon, 12 Jun 2006 18:50:22 +0000 (18:50 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 12 Jun 2006 18:50:22 +0000 (18:50 +0000)
commitf0b99d6cbdd4809189775194446a6a7093b7162c
tree08dd0b278359c4261068a359565a326a12b76c09
parent586825f169eb5672baacf7154df91db0049c508b
re PR c++/21210 (Trouble with __complex__ types default construction)

PR c++/21210
* typeck2.c (build_functional_cast): Use cp_convert to construct
non-aggregate initializers instead of the user-level build_c_cast.

* g++.dg/init/complex1.C: New test case.

From-SVN: r114573
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/complex1.C [new file with mode: 0644]