[Bug c++/13092] [3.4/3.5 regression] Accepts invalid pointer-to-member conversion
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 27 09:25:00 GMT 2004
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-01-27 09:25 -------
The segfault is now gone (in 3.4 and mainline) - fixed by Mark's patch
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02882.html
However, the testcases 2 and 4 of Kriang's patch do compile
although they should issue an error.
Just for referecnce, here's number 2:
=========================================
struct S
{
char i;
};
template<int S::*p>
struct X
{};
template <class T>
struct Foo
{
X<&S::i> x; // { dg-error "convert|no type" }
};
=========================================
This is still a regression.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |accepts-invalid
Summary|[3.4/3.5 regression] |[3.4/3.5 regression] Accepts
|Segfault in |invalid pointer-to-member
|convert_nontype_argument |conversion
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13092
More information about the Gcc-bugs
mailing list