re PR c++/40557 (ICE with template union)
authorSimon Martin <simartin@users.sourceforge.net>
Mon, 6 Jul 2009 04:55:20 +0000 (04:55 +0000)
committerSimon Martin <simartin@gcc.gnu.org>
Mon, 6 Jul 2009 04:55:20 +0000 (04:55 +0000)
commitc4efba1c212b3cc4c3af05a420888b878fcc29ae
tree8b91a502c4d1053787176cc0bd0f199bd0077f4e
parente2e23550fca10255ad0251e10c53fbeecc8bc057
re PR c++/40557 (ICE with template union)

gcc/cp/

2009-07-06  Simon Martin  <simartin@users.sourceforge.net>

PR c++/40557
* pt.c (perform_typedefs_access_check, get_types_needing_access_check,
append_type_to_template_for_access_check_1): Use
RECORD_OR_UNION_CODE_P.

gcc/testsuite/

2009-07-06  Simon Martin  <simartin@users.sourceforge.net>

PR c++/40557
* g++.dg/template/union2.C: New test.

From-SVN: r149276
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/union2.C [new file with mode: 0644]