[Bug d/88958] ICE in walk_aliased_vdefs_1, at tree-ssa-alias.c:2887

2019-03-10 Thread ibuclaw at gdcproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88958

Iain Buclaw  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Iain Buclaw  ---
Fixed in r269557.

[Bug d/88958] ICE in walk_aliased_vdefs_1, at tree-ssa-alias.c:2887

2019-03-10 Thread ibuclaw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88958

--- Comment #5 from ibuclaw at gcc dot gnu.org ---
Author: ibuclaw
Date: Sun Mar 10 16:29:48 2019
New Revision: 269557

URL: https://gcc.gnu.org/viewcvs?rev=269557=gcc=rev
Log:
PR d/88958
d/dmd: Merge upstream dmd 0fc786f49

Backport fix to disallow passing functions as parameters.

Fixes https://gcc.gnu.org/PR88958

Reviewed-on: https://github.com/dlang/dmd/pull/9437

Added:
trunk/gcc/testsuite/gdc.test/fail_compilation/test19608.d
Modified:
trunk/gcc/d/dmd/MERGE
trunk/gcc/d/dmd/expressionsem.c

[Bug d/88958] ICE in walk_aliased_vdefs_1, at tree-ssa-alias.c:2887

2019-02-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88958

--- Comment #4 from Martin Liška  ---
(In reply to Martin Liška from comment #3)
> Author: marxin
> Date: Mon Feb  4 12:19:48 2019
> New Revision: 268516
> 
> URL: https://gcc.gnu.org/viewcvs?rev=268516=gcc=rev
> Log:
> Bail out when ipa_fn_summaries does not contain entry for callee (PR
> ipa/88958).
> 
> 2019-02-04  Martin Liska  
> 
>   PR ipa/88958
>   * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
>   out when ipa_fn_summaries does not contain entry for callee.
> 2019-02-04  Martin Liska  
> 
>   PR ipa/88958
>   * gcc.dg/ipa/pr88958.c: New test.
> 
> Added:
> trunk/gcc/testsuite/gcc.dg/ipa/pr88958.c
> Modified:
> trunk/gcc/ChangeLog
> trunk/gcc/ipa-fnsummary.c
> trunk/gcc/testsuite/ChangeLog

Sorry, wrong changelog entry.

[Bug d/88958] ICE in walk_aliased_vdefs_1, at tree-ssa-alias.c:2887

2019-02-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88958

--- Comment #3 from Martin Liška  ---
Author: marxin
Date: Mon Feb  4 12:19:48 2019
New Revision: 268516

URL: https://gcc.gnu.org/viewcvs?rev=268516=gcc=rev
Log:
Bail out when ipa_fn_summaries does not contain entry for callee (PR
ipa/88958).

2019-02-04  Martin Liska  

PR ipa/88958
* ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
out when ipa_fn_summaries does not contain entry for callee.
2019-02-04  Martin Liska  

PR ipa/88958
* gcc.dg/ipa/pr88958.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/ipa/pr88958.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-fnsummary.c
trunk/gcc/testsuite/ChangeLog

[Bug d/88958] ICE in walk_aliased_vdefs_1, at tree-ssa-alias.c:2887

2019-01-26 Thread ibuclaw at gdcproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88958

--- Comment #2 from Iain Buclaw  ---
This is code that the front-end implementation accepts as valid code, but it
should be an error.  Referencing f on is own does not automatically take the
address of it, e.g:

auto a = f;// f(int) is not callable using argument types ().
auto b = *  // b cannot be declared to be a function.

[Bug d/88958] ICE in walk_aliased_vdefs_1, at tree-ssa-alias.c:2887

2019-01-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88958

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-01-22
 CC||ibuclaw at gcc dot gnu.org,
   ||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

[Bug d/88958] ICE in walk_aliased_vdefs_1, at tree-ssa-alias.c:2887

2019-01-21 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88958

--- Comment #1 from G. Steinmetz  ---

$ gdc-9-20190120 -c z1.d -O0
$
$ gdc-9-20190120 -c z1.d -O1
during GIMPLE pass: fre
In function 'h':
d21: internal compiler error: in copy_reference_ops_from_ref, at
tree-ssa-sccvn.c:976
0xce83a5 copy_reference_ops_from_ref
../../gcc/tree-ssa-sccvn.c:976
0xce90a5 valueize_shared_reference_ops_from_ref
../../gcc/tree-ssa-sccvn.c:1626
0xcea5a9 vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind,
vn_reference_s**, bool)
../../gcc/tree-ssa-sccvn.c:2708
0xcf16f9 visit_reference_op_load
../../gcc/tree-ssa-sccvn.c:4067
0xcf16f9 visit_stmt
../../gcc/tree-ssa-sccvn.c:4485
0xcf2aeb process_bb
../../gcc/tree-ssa-sccvn.c:6055
0xcf3eff do_rpo_vn
../../gcc/tree-ssa-sccvn.c:6662
0xcf4e2c execute
../../gcc/tree-ssa-sccvn.c:6797