Fix PR c++/70106 (type of parenthesized qualified-id has wrong cv-qualifiers)
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Mar 2016 02:05:17 +0000 (02:05 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Mar 2016 02:05:17 +0000 (02:05 +0000)
commit490ee78a39cc213839d963d7917937839b8b4dec
tree7b8e32914e63bd23bcc66a087cddb1cb38304ba9
parent5dbb9352a6e874ae15f13a238b291e390ec0fa6c
Fix PR c++/70106 (type of parenthesized qualified-id has wrong cv-qualifiers)

gcc/cp/ChangeLog:

PR c++/70106
* semantics.c (force_paren_expr): Just build a PAREN_EXPR when
processing_template_decl and EXPR is a SCOPE_REF.

gcc/testsuite/ChangeLog:

PR c++/70106
* g++.dg/cpp1y/paren3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234159 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/paren3.C [new file with mode: 0644]