https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20407

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
      Known to work|                            |6.0
         Resolution|---                         |FIXED
      Known to fail|                            |4.9.3, 5.1.0

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed on trunk with r231665.

$ cat x.c && /home/msebor/build/gcc-trunk-svn/gcc/xgcc
-B/home/msebor/build/gcc-trunk-svn/gcc -S -Wall -Wextra -Wpedantic -xc++ x.c
typedef struct {
 unsigned char dir;
 int data[];
} AiDefaultRailBlock;
static const AiDefaultRailBlock _raildata_ai_0 = { 1,  { 0,  4 }  };
x.c:5:67: warning: initialization of a flexible array member [-Wpedantic]
 static const AiDefaultRailBlock _raildata_ai_0 = { 1,  { 0,  4 }  };
                                                                   ^

Looks like c++/68490 is a duplicate of this bug, with a similar test case about
to be added to the test suite:
https://gcc.gnu.org/ml/gcc-patches/2016-01/msg01000.html

Reply via email to