This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30281] [reject valid?] type deduction fails.
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2007 05:23:44 -0000
- Subject: [Bug c++/30281] [reject valid?] type deduction fails.
- References: <bug-30281-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from bangerth at dealii dot org 2007-01-21 05:23 -------
Here's an even simpler testcase that shows the same problem (even if the
error message is different):
-------------
struct a
{
int g(void);
};
struct b : a { };
void test()
{
static_cast<int (b::*)() const> (&b::g);
}
------------------
g/x> c++ -c x.cc
x.cc: In function 'void test()':
x.cc:10: error: invalid static_cast from type 'int (a::*)()' to type 'int
(b::*)()const'
In any case, this is a duplicate of PR 17359.
W.
*** This bug has been marked as a duplicate of 17359 ***
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30281