[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-04-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

--- Comment #18 from Jakub Jelinek  ---
Author: jakub
Date: Sat Apr 11 13:57:11 2015
New Revision: 222009

URL: https://gcc.gnu.org/viewcvs?rev=222009&root=gcc&view=rev
Log:
PR middle-end/65554
* g++.dg/opt/pr65554.C: Use __SIZE_TYPE__ instead of unsigned long.

Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/opt/pr65554.C


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-04-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

Jonathan Wakely  changed:

   What|Removed |Added

 CC||public at alisdairm dot net

--- Comment #17 from Jonathan Wakely  ---
*** Bug 65739 has been marked as a duplicate of this bug. ***


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-04-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

--- Comment #15 from Marek Polacek  ---
Author: mpolacek
Date: Thu Apr  9 18:30:34 2015
New Revision: 221954

URL: https://gcc.gnu.org/viewcvs?rev=221954&root=gcc&view=rev
Log:
PR middle-end/65554
* gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
(fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
of STRIP_NOPS.

* g++.dg/opt/pr65554.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/opt/pr65554.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple-fold.c
trunk/gcc/testsuite/ChangeLog


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-04-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

Marek Polacek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #16 from Marek Polacek  ---
Fixed.


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-04-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

Marek Polacek  changed:

   What|Removed |Added

   Priority|P3  |P1
  Component|c++ |middle-end
   Target Milestone|--- |5.0
Summary|ICE: verify_gimple failed   |[5 Regression] ICE:
   ||verify_gimple failed

--- Comment #14 from Marek Polacek  ---
This turned out to be a bug in fold and a 5 regression; started with r213753,
but the issue was probably latent.  I have an untested fix.


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-03-25 Thread doko at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

--- Comment #4 from Matthias Klose  ---
wasn't sure if I should file these as regressions. first time a build with
--enable-checking=yes, but it looks to me like a regression compared to a 4.9
--enable-checking=release build.


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-03-25 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

Markus Trippelsdorf  changed:

   What|Removed |Added

   Target Milestone|5.0 |---

--- Comment #3 from Markus Trippelsdorf  ---
(In reply to Jakub Jelinek from comment #2)
> Why do you think this is a regression (or recent regression)?
> Already r171770 ICEs with it, r171700 does not, but it rejects the testcase
> and probably doesn't really support std::initializer_list.

Well, I haven't tested it with older compilers at all, because 
Matthias set 4.9.2 in the "known to work" field.
Will leave the "Target Milestone" field untouched in the future...


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-03-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
Why do you think this is a regression (or recent regression)?
Already r171770 ICEs with it, r171700 does not, but it rejects the testcase and
probably doesn't really support std::initializer_list.


[Bug middle-end/65554] [5 Regression] ICE: verify_gimple failed

2015-03-25 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65554

Markus Trippelsdorf  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-03-25
 CC||trippels at gcc dot gnu.org
   Target Milestone|--- |5.0
 Ever confirmed|0   |1

--- Comment #1 from Markus Trippelsdorf  ---
markus@x4 tmp % cat HDCommand.ii
namespace std
{
template  class initializer_list
{
  int *_M_array;
  int _M_len;
};
class A
{
public:
  void operator=(initializer_list);
};
class B
{
  void m_fn1 (A &) const;
};
void
B::m_fn1 (A &) const
{
  A extra;
  extra = {};
}
}


markus@x4 tmp % g++ -std=c++11 -O2 -c HDCommand.ii
HDCommand.ii: In member function ‘void std::B::m_fn1(std::A&) const’:
HDCommand.ii:18:1: error: non-trivial conversion at assignment
 B::m_fn1 (A &) const
 ^
int
sizetype
D.2166._M_len = 0;
HDCommand.ii:18:1: internal compiler error: verify_gimple failed
0xcec17f verify_gimple_in_seq(gimple_statement_base*)
../../gcc/gcc/tree-cfg.c:4737
0xac009c gimplify_body(tree_node*, bool)
../../gcc/gcc/gimplify.c:9100
0xac0406 gimplify_function_tree(tree_node*)
../../gcc/gcc/gimplify.c:9185
0x90c2b7 cgraph_node::analyze()
../../gcc/gcc/cgraphunit.c:633
0x90f36d analyze_functions
../../gcc/gcc/cgraphunit.c:1023
0x90fc55 symbol_table::finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2435
0x6ec4c7 cp_write_global_declarations()
../../gcc/gcc/cp/decl2.c:4755
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.