public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65692] New: Repeating error for each array entry
@ 2015-04-08  8:01 development@faf-ltd.com
  2015-04-08  8:21 ` [Bug c++/65692] " rguenth at gcc dot gnu.org
  2021-08-11 22:06 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: development@faf-ltd.com @ 2015-04-08  8:01 UTC (permalink / raw)
  To: gcc-bugs

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: development@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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-11 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-08  8:01 [Bug c++/65692] New: Repeating error for each array entry development@faf-ltd.com
2015-04-08  8:21 ` [Bug c++/65692] " rguenth at gcc dot gnu.org
2021-08-11 22:06 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).