This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23965] [4.0 regression] Bogus error message: no matching function for call to 'foo(<type error>)'
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2005 16:06:18 -0000
- Subject: [Bug c++/23965] [4.0 regression] Bogus error message: no matching function for call to 'foo(<type error>)'
- References: <bug-23965-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from reichelt at gcc dot gnu dot org 2005-10-05 16:06 -------
This is now fixed on the 4.0 branch, too.
Unfortunately I committed a suboptimal version to the 3.4 branch and mainline:
Misreading Mark's comments on the original patch I used
if (arg == error_mark_node || error_operand_p (arg))
instead of
if (error_operand_p (arg))
Since arg == error_mark_node is already checked in error_operand_p,
the first test is superfluous.
I'll keep the PR open until this is fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23965