tree.c (walk_type_fields): Do not handle TYPE_MIN_VALUE and TYPE_MAX_VALUE for scalar...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 4 Dec 2006 07:47:32 +0000 (07:47 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 4 Dec 2006 07:47:32 +0000 (07:47 +0000)
commit8f6e6bf375959dc0c4aad0df8374af715dd2e440
treed48f078695e6c5b3e49f0ae019a91f707e95c60b
parentb4fc8a637bbef0296d3edcc6d21051f79092491f
tree.c (walk_type_fields): Do not handle TYPE_MIN_VALUE and TYPE_MAX_VALUE for scalar types here but...

* 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.

From-SVN: r119481
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/pointer_variable_bounds.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/pointer_variable_bounds.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/pointer_variable_bounds_q.ads [new file with mode: 0644]
gcc/tree.c