[Bug c/37064] missing warning on pure function with side-effects

2008-08-08 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-08-08 21:01 --- *** This bug has been marked as a duplicate of 18487 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/37064] missing warning on pure function with side-effects

2008-08-08 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-08-08 20:53 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Severity|norma

[Bug c/37064] missing warning on pure function with side-effects

2008-08-08 Thread sebor at roguewave dot com
--- 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;