[Bug c++/30281] [reject valid?] type deduction fails.
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 21 05:23:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list