This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21340] [4.0/4.1 Regression] error in constructor lookup (can't find constructor with "const void**" argument)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2005 17:15:34 -0000
- Subject: [Bug c++/21340] [4.0/4.1 Regression] error in constructor lookup (can't find constructor with "const void**" argument)
- References: <20050502163126.21340.benoit@zeroc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-02 17:15 -------
Confirmed, reduced testcase:
struct Base{};
struct Iterator : virtual Base {};
bool operator==(const Iterator&, const Iterator&);
struct IteratorI : Iterator {};
struct Obj
{
bool operator==(const Obj&) const;
};
template <int>bool dummy()
{
Obj lhs, rhs;
return lhs == rhs;
}
int
main(int argc, char** argv)
{
//Iterator* it1 = new Iterator();
IteratorI* it2 = new IteratorI();
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code, rejects-
| |valid
Last reconfirmed|0000-00-00 00:00:00 |2005-05-02 17:15:32
date| |
Summary|error in constructor lookup |[4.0/4.1 Regression] error
|(can't find constructor with|in constructor lookup (can't
|"const void**" argument) |find constructor with "const
| |void**" argument)
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21340