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 target/65568] ptrmem8.C:9:9: internal compiler error: in build_ptrmemfunc, at cp/typeck.c:7940


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65568

--- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Issue is related to -fms-extensions.  This option is for mingw targets on by
default.  By the following patch issue in testsuite gets solved (it makes sense
to apply this patch for such testcases, as here indeed -fno-ms-extensions is
tested).  
The point - as already noticed and spoken with Jason - that some C++-extensions
are buggy in C++-FE.

Index: ptrmem8.C
===================================================================
--- ptrmem8.C   (Revision 221690)
+++ ptrmem8.C   (Arbeitskopie)
@@ -1,5 +1,6 @@
 // PR c++/33844
 // { dg-do compile }
+// { dg-additional-options "-fno-ms-extensions" { target *-*-mingw* } }

 struct A {};


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