--- Comment #5 from jason at gcc dot gnu dot org 2010-03-09 02:38 ---
This is a bug: G++ fails to consider the built-in operator%(long,long) because
double is not an integral type.
--
jason at gcc dot gnu dot org changed:
What|Removed |Added
--
--- Comment #4 from bangerth at dealii dot org 2007-09-24 14:30 ---
My reasoning would be that in the call d%g, the type of the two
expressions are 'double&' and 'A&'. So to call the user-defined
operator%, only the first argument has to be converted to 'A' for which
a conversion constru
--- Comment #3 from martinezfive at comcast dot net 2007-09-24 13:59
---
I spoke with the people at EDG and they have confirmed their compiler's
acceptance of the code indeed constitutes a bug. Since almost every last EDG
developer is also a member of the ISO C++ Core Committee (and vi
--- Comment #2 from bangerth at dealii dot org 2007-09-23 19:44 ---
icc (and EDG-based compiler) accepts this code, but sunCC rejects it
as ambiguous.
I don't know off the top of my head who's right and who is not, but
I suspect that it would be gcc and icc who are right.
W.
--
ban
--- Comment #1 from martinezfive at comcast dot net 2007-09-12 16:13
---
Created an attachment (id=14196)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14196&action=view)
a.cpp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33409