This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13092] [3.4/3.5 regression] Accepts invalid pointer-to-member conversion
- 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: 27 Jan 2004 09:25:45 -0000
- Subject: [Bug c++/13092] [3.4/3.5 regression] Accepts invalid pointer-to-member conversion
- References: <20031117223716.13092.giovannibajo@libero.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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