[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-04-12 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Assignee|unassigned at gcc dot gnu.org  |amodra at gmail dot com
   Target Milestone|--- |4.9.4

--- Comment #9 from Alan Modra  ---
Fixed

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-04-12 Thread amodra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #8 from Alan Modra  ---
Author: amodra
Date: Tue Apr 12 22:59:05 2016
New Revision: 234925

URL: https://gcc.gnu.org/viewcvs?rev=234925=gcc=rev
Log:
Fix target/70107, another case of PR c++/70096

gcc/cp/
PR target/70107
PR c++/70096
* pt.c (tsubst_decl): Clear the DECL_MODE of the new decl.

gcc/testsuite/
* g++.dg/template/ptrmem30.C (read): Rename to data_read.
(Holder::foo): Reflect this.

PR c++/70096
* g++.dg/template/ptrmem30.C: New test.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/ptrmem30.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/pt.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-04-12 Thread amodra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #7 from Alan Modra  ---
Author: amodra
Date: Tue Apr 12 22:58:36 2016
New Revision: 234924

URL: https://gcc.gnu.org/viewcvs?rev=234924=gcc=rev
Log:
Fix target/70107, another case of PR c++/70096

gcc/cp/
PR target/70107
PR c++/70096
* pt.c (tsubst_decl): Clear the DECL_MODE of the new decl.

gcc/testsuite/
* g++.dg/template/ptrmem30.C (read): Rename to data_read.
(Holder::foo): Reflect this.

PR c++/70096
* g++.dg/template/ptrmem30.C: New test.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/template/ptrmem30.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/pt.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-04-12 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #6 from Alan Modra  ---
Bootstrap and regression testing completed for both gcc-4.9 and gcc-5 branch

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-04-12 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-04-12
 CC||amodra at gmail dot com,
   ||ppalka at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #5 from Alan Modra  ---
This is actually a duplicate of pr70096.  My debug session shows that
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70096#c3 applies here too.  The
pr70096 patch applied to mainline fixes the testcase in this bugzilla when
applied to gcc-5 and gcc-4.9 branches.

I'm about to do a full bootstrap and regression test on powerpc64le-linux.

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-03-28 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #4 from Markus Trippelsdorf  ---
You need to add "-std=c++11 -fpermissive" to gcc < 6.
Trunk seems to be fixed, but gcc-5 and gcc-4.9 still ICE.

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-03-28 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #3 from Bill Schmidt  ---
Also, on latest GCC 5 and GCC 4.9, the front end objects:

wschmidt@genoa:~/src$ $GCC_INSTALL/bin/g++ -w -c -mcpu=power8 pr70107.ii
pr70107.ii:3:46: error: expected type-specifier before 'decltype'
   auto operator()(T Base::*, Derived ref) -> decltype(ref);
  ^
pr70107.ii:3:46: error: expected initializer before 'decltype'
pr70107.ii: In function 'void test_b12(Functor)':
pr70107.ii:8:9: error: expected nested-name-specifier before 'ClassFunc'
   using ClassFunc = Signature TestClass::*;
 ^
pr70107.ii:9:3: error: 'ClassFunc' was not declared in this scope
   ClassFunc b;
   ^
pr70107.ii:10:5: error: 'b' was not declared in this scope
   a(b, f);
 ^
wschmidt@genoa:~/src$

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-03-28 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #2 from Bill Schmidt  ---
Could not confirm with trunk r234476 on powerpc64le dated 2016-03-24.  Can you
please retry with something at least that recent?

[Bug target/70107] ICE: in emit_move_insn, at expr.c:3546 with -mcpu=power8

2016-03-06 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #1 from Markus Trippelsdorf  ---
All supported gcc versions ICE.