[Bug c++/17577] New: #pragma implementation no longer diagnoses use after file to which it applies
zack at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 21 01:50:00 GMT 2004
With the C++ lexer speedup patch (which I will cross-reference as soon as it is
posted) handle_pragma_implementation calls cpp_included after the entire
translation unit is processed by cpplib, so it will return true whether or not
the #pragma appears lexically after the file it applies to. This can be fixed
most practically by completing Per's --enable-mapped-location mode and then
comparing the line+file cookie of the #pragma to the first line+file cookie of
the file it applies to, and the diagnostic is not an essential feature, so the
patch disables it, which constitutes a regression. Filing this bug and
assigning to myself so we don't forget about it.
--
Summary: #pragma implementation no longer diagnoses use after
file to which it applies
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: zack at gcc dot gnu dot org
ReportedBy: zack at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17577
More information about the Gcc-bugs
mailing list