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
* [Bug c++/65692] Repeating error for each array entry
2015-04-08 8:01 [Bug c++/65692] New: Repeating error for each array entry development@faf-ltd.com
@ 2015-04-08 8:21 ` rguenth at gcc dot gnu.org
2021-08-11 22:06 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-08 8:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65692
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-04-08
Ever confirmed|0 |1
Known to fail| |4.8.3, 4.9.2
Severity|trivial |normal
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed with GCC 4.9 and 4.8. GCC 5 doesn't emit any error or warning.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/65692] Repeating error for each array entry
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
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-11 22:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65692
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |5.0
Status|NEW |RESOLVED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can't think of a way to get the error message any more in C++11 or C++98.
There is no way to hit this in GCC 5+.
The fixes for PR 61489 and PR 49132 disallow this to be hit any more.
^ 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).