This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10929


bangerth@dealii.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Priority|P2                          |P1
            Summary|g++-3.3 -Winline warns about|[3.3/3.4 regression] -
                   |functions that cannot/should|Winline warns about
                   |not be inlined              |functions for which no
                   |                            |definition is visible
   Target Milestone|3.4                         |3.3.1


------- Additional Comments From bangerth@dealii.org  2003-05-22 14:33 -------
Confirmed. A profoundly unhelpful feature. It triggers on this simple code:
---------------------------
int foo(void);

int main() {
   return foo();
}
---------------------------
3.3 and 3.4 warn like this:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc -O3 -Winline -c
x.cc: In function `int main()':
x.cc:1: warning: inlining failed in call to `int foo()'
x.cc:4: warning: called from here

Warning about functions for which no definition is visible doesn't
make much sense.

W.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]