------- Comment #1 from sebor at roguewave dot com 2008-08-08 19:47 ------- Similarly, functions declared with the const attribute such as f1() in the test case below that violate the compiler's assumptions should be diagnosed:
$ cat -n t.C && g++ -c -O2 -Wall -W t.C
1 extern int i;
2 int f1 () __attribute ((const));
3 int f1 ()
4 {
5 return i;
6 }
7
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37064
