[Bug c++/118355] New: New error in GCC 12

2025-01-08 Thread thomgree at cisco dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: thomgree at cisco dot com Target Milestone: --- Minimal example code: int main() { enum MY_ENUM { ZERO, }; struct FOO { MY_ENUM type = ZERO; }; struct ARR { FOO array[1] = {}; }; ARR arr; arr = {}; return 0

[Bug c++/117985] New: ICE in gimplify_var_or_parm_decl, at gimplify.cc:3308

2024-12-10 Thread thomgree at cisco dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: thomgree at cisco dot com Target Milestone: --- Minimal code to reproduce (compile with -std=c++20 or later): #include #include struct VEC { std::vector pane = {}; }; struct FOO { VEC screen[1] = {}; std

[Bug c++/90926] [8/9/10/11 Regression] member char array with string literal initializer causes = {} to fail

2021-01-05 Thread thomgree at cisco dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90926 --- Comment #5 from thomgree at cisco dot com --- I made a fix for this bug here: https://gcc.gnu.org/pipermail/gcc-patches/2020-December/562259.html

[Bug c++/90926] New: member char array with string literal initializer causes = {} to fail

2019-06-19 Thread thomgree at cisco dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: thomgree at cisco dot com Target Milestone: --- minimal example program: int main() { struct thing { char str[100] = "foo"; //char str[100] = {'f&