OSDN Git Service

* tree.c (walk_type_fields): Do not handle TYPE_MIN_VALUE and
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Dec 2006 07:47:32 +0000 (07:47 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Dec 2006 07:47:32 +0000 (07:47 +0000)
commit89c5cfdc6cc4371003e493e22521b7915f3aefcd
treed48f078695e6c5b3e49f0ae019a91f707e95c60b
parent35006a92115d2e01287971aa41c685f9c83783fe
* 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
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