re PR c++/5132 (NaN = 0.0 * HUGE_VAL fails to compile in templates)
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 29 Jan 2002 09:52:51 +0000 (09:52 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 29 Jan 2002 09:52:51 +0000 (09:52 +0000)
commitb8b98c66af69365e645718d3bf72ccabaa6ef2ab
tree957d80217ed43186278a3c6bc7ccb26b5ef4b738
parentaee25e2d8eaf7610eef9a9ec234f0cd97bc1964b
re PR c++/5132 (NaN = 0.0 * HUGE_VAL fails to compile in templates)

cp:
PR c++/5132
* typeck2.c (digest_init): Make sure non-array core type is
instantiated.
* decl2.c (reparse_absdcl_as_casts): Just store the type in the
constructor, rather than build a new one.
(build_expr_from_tree, CONSTRUCTOR case): Be careful with the
PURPOSE of constructor elts.
testsuite:
* g++.dg/template/ctor1.C: Add instantiation.

From-SVN: r49314
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/ctor1.C