Skip to content
Snippets Groups Projects
Commit 2d7231a3 authored by Jakub Jelinek's avatar Jakub Jelinek Committed by Jakub Jelinek
Browse files

re PR c++/36688 (Incorrect struct assignments with nested const initializers)

	PR c++/36688
	* gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
	on the VAR_DECL instead of TYPE_READONLY on its type.

	* g++.dg/init/const6.C: New test.

From-SVN: r139004
parent be349cac
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment