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

Szikra <steven.spark at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven.spark at gmail dot com

--- Comment #5 from Szikra <steven.spark at gmail dot com> ---
I just run into this problem with gcc version 7.3.1 20180622 (release)
[ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors
7-2018-q2-update)

Thanks J.R. Heisey and ensadc, the extra braces solved the error... for now.

I added this url to comments in case this bug is fixed and they need to be
removed.

typedef struct {
    /// ...
    uint16_t serverPort;
    char serverAddress[128];
} ConfigParameters_t;


ConfigParameters_t __attribute__((section(".eeprom"))) eeParameters = {
    /// ...
    .serverPort=1234,
    {.serverAddress="*****"} /// weird...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
};

Reply via email to