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

            Bug ID: 65692
           Summary: Repeating error for each array entry
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: developm...@faf-ltd.com

#include <atomic>

typedef struct
{
        bool                    bValid;
        char                    sDateTime [20];
        std::atomic<bool>       bReadyToFlush;
} LogEntries;

typedef struct
{
        LogEntries              leLogEntries [10000] {};
} LogThreads;


Compiled with: gcc t.cpp -c -std=c++11 -Wall -Werror -Wextra

gcc displayes 30000! error messages - 3 for each array entry. Even -Werror is
set the -fmax-errors option does not work in this case [may be this is on
purpose because the error is basing on a warning].

The above example is reported here
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65512 as fixed in 5.0 and is NOT
the subject of this post --> The repeating error message can be reviewed.

Reply via email to