This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43289] Missed constraint C1271a: Referrencing VOLATILE variable in PURE subprogram
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 11 Dec 2011 17:17:18 +0000
- Subject: [Bug fortran/43289] Missed constraint C1271a: Referrencing VOLATILE variable in PURE subprogram
- Auto-submitted: auto-generated
- References: <bug-43289-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43289
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-12-11 17:17:18 UTC ---
Created attachment 26047
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26047
Draft patch w/ test case
Patch TODO: Handle implicit pure, cf. PR 51502.
The error location is not ideal, but finding the expression locus requires
adding this check at every place where sym->referenced.