[Bug c++/12078] New: -Winline points to inexistent source lines
bagnara at cs dot unipr dot it
gcc-bugzilla@gcc.gnu.org
Wed Aug 27 12:26:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12078
Summary: -Winline points to inexistent source lines
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bagnara at cs dot unipr dot it
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
With GCC 3.3.x and also with version 3.4 20030826 (experimental),
the compilation command
$ g++ -O2 -Winline -c BoundingBox.ii
gives
/home/roberto/ppl/ppl/src/BoundingBox.inlines.hh: In function `std::ostream&
Parma_Polyhedra_Library::IO_Operators::operator<<(std::ostream&, const
Parma_Polyhedra_Library::BoundingBox&)':
/home/roberto/ppl/ppl/src/BoundingBox.inlines.hh:63: warning: inlining failed in
call to 'bool
Parma_Polyhedra_Library::BoundingBox::get_lower_bound(dimension_type, bool&,
Parma_Polyhedra_Library::Integer&, Parma_Polyhedra_Library::Integer&) const'
/home/roberto/ppl/ppl/src/BoundingBox.cc:76: warning: called from here
/home/roberto/ppl/ppl/src/BoundingBox.inlines.hh:80: warning: inlining failed in
call to 'bool
Parma_Polyhedra_Library::BoundingBox::get_upper_bound(dimension_type, bool&,
Parma_Polyhedra_Library::Integer&, Parma_Polyhedra_Library::Integer&) const'
/home/roberto/ppl/ppl/src/BoundingBox.cc:92: warning: called from here
The problem is that lines 76 and 92 of BoundingBox.cc do not exist:
that file has only 62 lines. In other cases (let me know if you want them)
the line given contains a comment. More generally, the lines given very often
have nothing to do with the function calls for which (according to the
warning printed) inlining failed.
More information about the Gcc-bugs
mailing list