aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2011-11-23 08:23:59 +0000
committerDodji Seketeli <dodji@gcc.gnu.org>2011-11-23 09:23:59 +0100
commit82daaf6d550e9380e33f802310b52c2af1758ff0 (patch)
treed99b07867ba0ab8aed14e5f7ad8d2531edaf7198 /gcc/c-lang.c
parentb64cd62a6e012311c812b224198d4442a155e747 (diff)
downloadgcc-82daaf6d550e9380e33f802310b52c2af1758ff0.zip
gcc-82daaf6d550e9380e33f802310b52c2af1758ff0.tar.gz
gcc-82daaf6d550e9380e33f802310b52c2af1758ff0.tar.bz2
PR c++/51145 - Alias template in elaborated-type-specifier accepted
gcc/cp/ PR c++/51145 * decl.c (check_elaborated_type_specifier): Gracefully handle error_mark_node. Accept bound template template parameters. Update diagnostics for alias template specializations. Update comment. * parser.c (cp_parser_elaborated_type_specifier): Use check_elaborated_type_specifier for simple-template-ids as well. gcc/testsuite/ PR c++/51145 * g++.dg/cpp0x/alias-decl-14.C: New test. * g++.dg/cpp0x/alias-decl-2.C: Adjust for tests that were wrongly passing before. * g++.dg/cpp0x/alias-decl-10.C: Likewise and adjust for diagnostic change. * g++.dg/ext/attrib27.C: Adjust for diagnostic change. * g++.dg/lookup/struct1.C: Likewise. * g++.dg/parse/elab1.C: Likewise. * g++.dg/parse/elab2.C: Likewise. * g++.dg/parse/int-as-enum1.C: Likewise. * g++.dg/parse/typedef1.C: Likewise. * g++.dg/parse/typedef3.C: Likewise. * g++.dg/parse/typedef4.C: Likewise. * g++.dg/parse/typedef5.C: Likewise. * g++.dg/template/crash26.C: Likewise. * g++.dg/template/nontype4.C: Likewise. * g++.old-deja/g++.benjamin/typedef01.C: Likewise. * g++.old-deja/g++.brendan/line1.C: Likewise. * g++.old-deja/g++.other/elab1.C: Likewise. * g++.old-deja/g++.other/syntax4.C: Likewise. From-SVN: r181653
Diffstat (limited to 'gcc/c-lang.c')
0 files changed, 0 insertions, 0 deletions