This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/86240] New: ice: unexpected expression absu_expr
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Jun 2018 13:47:25 +0000
- Subject: [Bug c++/86240] New: ice: unexpected expression absu_expr
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86240
Bug ID: 86240
Summary: ice: unexpected expression absu_expr
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Somewhere between revisions 261680 and 261730, this C++ code
causes trouble:
extern "C" int abs(int);
class a {
public:
short b;
};
short c;
void d() {
a e;
abs(c) >= e.b;
}
$ ~/gcc/results.261730/bin/gcc -c -w bug447.cc
bug447.cc: In function ‘void d()’:
bug447.cc:9:15: internal compiler error: unexpected expression ‘#‘absu_expr’
not supported by dump_expr#<expression error>’ of kind absu_expr
abs(c) >= e.b;
^
0x822d5d cxx_eval_constant_expression
../../trunk/gcc/cp/constexpr.c:4815
0x820019 cxx_eval_constant_expression
../../trunk/gcc/cp/constexpr.c:4612
0x820019 cxx_eval_constant_expression
../../trunk/gcc/cp/constexpr.c:4612