pseudodtor1.C
431 Bytes
-
re PR c++/32384 (Pseudo-dtor in template class rejected) · e426bd2c
PR c++/32384 * parser.c (cp_parser_postfix_dot_deref_expression): If POSTFIX_EXPRESSION is type dependent, try to parse it as pseudo dtor first and if that succeeds and type is SCALAR_TYPE_P, create PSEUDO_DTOR_EXPR. * g++.dg/template/pseudodtor1.C: New test. * g++.dg/template/pseudodtor2.C: New test. From-SVN: r129836
Jakub Jelinek committed