Skip to content
Snippets Groups Projects
Commit 89c5cfdc authored by ebotcazou's avatar ebotcazou
Browse files

* tree.c (walk_type_fields): Do not handle TYPE_MIN_VALUE and

	TYPE_MAX_VALUE for scalar types here but...
	(walk_tree): ...there instead.  Return NULL_TREE if the TYPE_DECL
	is attached an error mark, and the return value of the callback
	if it is not NULL_TREE.

cp/
	* pt.c (for_each_template_parm_r) <INTEGER_TYPE>: New case.
	Call for_each_template_parm on TYPE_MIN_VALUE and TYPE_MAX_VALUE.

testsuite/
	* gnat.dg/pointer_variable_bounds.adb: New test.
	* gnat.dg/pointer_variable_bounds.ads: Likewise.
	* gnat.dg/pointer_variable_bounds_q.ads: Likewise.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119481 138bc75d-0d04-0410-961f-82ee72b054a4
parent 35006a92
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment