]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/21165 (bogus error on a user-defined conversion in a template)
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 31 May 2005 17:43:26 +0000 (17:43 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 31 May 2005 17:43:26 +0000 (17:43 +0000)
commit8bd46447b3669450cb22678ae1b226d3c3aba576
tree03394e83db81a65eb8ed9555e2c58af853374744
parentfba53b18ab956e028e1a710f0029404408888c43
re PR c++/21165 (bogus error on a user-defined conversion in a template)

cp:
PR c++/21165
* init.c (integral_constant_value): Check the type of the
initializer, not the decl.
testsuite:
PR c++/21165
* g++.dg/template/init5.C: New.

From-SVN: r100402
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/init5.C [new file with mode: 0644]