https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
--- Comment #8 from Martin Sebor ---
*** Bug 97190 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
--- Comment #7 from David Binderman ---
Interesting.
$ fgrep DECL_SOURCE_LOCATION `find trunk/gcc -name \*.c -print | fgrep -v
/testsuite/` | wc -l
1002
$ fgrep EXPR_LOCATION `find trunk/gcc -name \*.c -print | fgrep -v /testsuite/`
| wc -l
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
--- Comment #6 from Martin Sebor ---
It definitely would be a step in the right direction. But I'm not sure how
feasible it is to turn any of these tests into compile-time. They often test
different bits in different structures. For example,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
--- Comment #5 from David Binderman ---
>From the text in the proposed patch:
>Using DECL_SOURCE_LOCATION() with a tree node that's not a DECL
>isn't a good idea, and neither is using EXPR_LOCATION() with
>a node that is a DECL. Both trigger
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
Martin Sebor changed:
What|Removed |Added
Keywords|ice-on-invalid-code |ice-on-valid-code
--- Comment #4 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
Martin Sebor changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
--- Comment #2 from CVS Commits ---
The master branch has been updated by Martin Sebor :
https://gcc.gnu.org/g:6edc8f5bfe7d9db8fb8bd37bb8086a69850c6c6d
commit r11-3409-g6edc8f5bfe7d9db8fb8bd37bb8086a69850c6c6d
Author: Martin Sebor
Date: Wed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175
Martin Sebor changed:
What|Removed |Added
Status|NEW |ASSIGNED