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

Re: c++/8826: "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided


The following reply was made to PR c++/8826; it has been noted by GNATS.

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>,
	<niemayer@isg.de>
Cc:  
Subject: Re: c++/8826: "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
Date: Fri, 2 May 2003 13:56:18 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8826
 
 Reconfirmed with everything up to current mainline (20030430). I agree this
 is a serious performance pessimization and it should be handled as soon as
 possible.
 I don't think there are any correctness problem though, since the compiler
 knows that a is exactly of type A (it's not a reference or a pointer), so
 it's always ok to inline the method, even without specifying
 a.A::operator>>() explitally.
 
 Giovanni Bajo
 


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