class.c (finish_struct_1): Look at the const-ness of the field's type...
authorMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 13 Apr 1999 21:20:49 +0000 (21:20 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 13 Apr 1999 21:20:49 +0000 (21:20 +0000)
commit1b8899d1a050991df240a26a928b4b21dae88504
treeb55fcee22d8fb344d3a863a05a6884034e662cde
parentadfaf194f307b745c5d011de13b6a58ba27914e5
class.c (finish_struct_1): Look at the const-ness of the field's type...

* class.c (finish_struct_1): Look at the const-ness of the field's
type, not the TREE_READONLY-ness of the declaration.
* method.c (synthesize_method): Likewise.
* pt.c (tsubst_decl): Call c_apply_type_quals_to_decl when
creating new declarations.

From-SVN: r26420
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.pt/assign1.C [new file with mode: 0644]