This is the mail archive of the gcc-patches@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]

[PATCH] Fix PR/11067 Strange warning with pure virtual inline function


When a pure virtual function is also marked as inline, gcc should not warn
about it not being defined with -Winline. The problem is the function is declared
inline but this warning does not make sense for pure virtual functions.
There are two ways to fix this either making sure the pure virtual functions are never
declared inline or not warn if it is a pure virtual function, I do both to make sure this
is does not warn.



ChangeLog: 2003-06-21 Andrew Pinski <pinskia@physics.uc.edu>

	PR c++/11067
	* decl.c (grok_function_init): Pure virtual functions are
	not inlinable.
	(finish_file): Only warn about used inline functions not
	defined that are not pure functions.


Attachment: temp.1.diff
Description: Binary data


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