This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13092] [3.4/3.5 regression] Accepts invalid pointer-to-member conversion


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]