This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/65568] ptrmem8.C:9:9: internal compiler error: in build_ptrmemfunc, at cp/typeck.c:7940
- From: "ktietz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Mar 2015 11:12:06 +0000
- Subject: [Bug target/65568] ptrmem8.C:9:9: internal compiler error: in build_ptrmemfunc, at cp/typeck.c:7940
- Auto-submitted: auto-generated
- References: <bug-65568-4 at http dot gcc dot gnu dot org/bugzilla/>
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 {};