public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65513] New: gcc stops with "internal compiler error"
@ 2015-03-22 14:37 development@faf-ltd.com
2015-03-23 9:40 ` [Bug c++/65513] " mpolacek at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: development@faf-ltd.com @ 2015-03-22 14:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65513
Bug ID: 65513
Summary: gcc stops with "internal compiler error"
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: development@faf-ltd.com
#include <atomic>
class LogEntries
{
public:
char sDateTime [20];
std::atomic<bool> bReadyToFlush;
};
class LogThreads
{
public:
static LogEntries leLogEntries [10];
};
LogEntries LogThreads::leLogEntries [10] {};
Compiler options:
g++ -v -save-temps -std=c++11 gcc-warning-bug-2.cpp -Wall -Wextra -c -Werror
-fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations
Output:
Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.9.2_source/configure --disable-multilib
Thread model: posix
gcc version 4.9.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++11' '-Wall' '-Wextra' '-c'
'-Werror' '-fno-strict-aliasing' '-fwrapv' '-fno-aggressive-loop-optimizations'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1plus -E -quiet -v
-D_GNU_SOURCE gcc-warning-bug-2.cpp -mtune=generic -march=x86-64 -std=c++11
-Wall -Wextra -Werror -fno-strict-aliasing -fwrapv
-fno-aggressive-loop-optimizations -fpch-preprocess -o gcc-warning-bug-2.ii
ignoring nonexistent directory
"/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/x86_64-unknown-linux-gnu
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/backward
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include
/usr/local/include
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++11' '-Wall' '-Wextra' '-c'
'-Werror' '-fno-strict-aliasing' '-fwrapv' '-fno-aggressive-loop-optimizations'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1plus -fpreprocessed
gcc-warning-bug-2.ii -quiet -dumpbase gcc-warning-bug-2.cpp -mtune=generic
-march=x86-64 -auxbase gcc-warning-bug-2 -Wall -Wextra -Werror -std=c++11
-version -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations -o
gcc-warning-bug-2.s
GNU C++ (GCC) version 4.9.2 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.2, GMP version 4.2.3, MPFR version 3.1.2,
MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.9.2 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.2, GMP version 4.2.3, MPFR version 3.1.2,
MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 660c5687a086ea3686f43ea5e642dd2c
gcc-warning-bug-2.cpp:16:43: error: missing initializer for member
‘LogEntries::sDateTime’ [-Werror=missing-field-initializers]
LogEntries LogThreads::leLogEntries [10] {};
^
gcc-warning-bug-2.cpp:16:43: error: missing initializer for member
‘LogEntries::bReadyToFlush’ [-Werror=missing-field-initializers]
gcc-warning-bug-2.cpp: In function ‘void
__static_initialization_and_destruction_0(int, int)’:
gcc-warning-bug-2.cpp:16:43: internal compiler error: in
gimplify_init_constructor, at gimplify.c:4007
0x7f7bc3 gimplify_init_constructor
../../gcc-4.9.2_source/gcc/gimplify.c:4007
0x7f879e gimplify_modify_expr_rhs
../../gcc-4.9.2_source/gcc/gimplify.c:4167
0x7f8874 gimplify_modify_expr
../../gcc-4.9.2_source/gcc/gimplify.c:4486
0x7fab57 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
../../gcc-4.9.2_source/gcc/gimplify.c:7627
0x7fc576 gimplify_stmt(tree_node**, gimple_statement_base**)
../../gcc-4.9.2_source/gcc/gimplify.c:5373
0x7fa40d gimplify_cleanup_point_expr
../../gcc-4.9.2_source/gcc/gimplify.c:5149
0x7fa40d gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
../../gcc-4.9.2_source/gcc/gimplify.c:7990
0x7fc576 gimplify_stmt(tree_node**, gimple_statement_base**)
../../gcc-4.9.2_source/gcc/gimplify.c:5373
0x7fb023 gimplify_statement_list
../../gcc-4.9.2_source/gcc/gimplify.c:1432
0x7fb023 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
../../gcc-4.9.2_source/gcc/gimplify.c:8042
0x7fc576 gimplify_stmt(tree_node**, gimple_statement_base**)
../../gcc-4.9.2_source/gcc/gimplify.c:5373
0x7fb023 gimplify_statement_list
../../gcc-4.9.2_source/gcc/gimplify.c:1432
0x7fb023 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
../../gcc-4.9.2_source/gcc/gimplify.c:8042
0x7fc576 gimplify_stmt(tree_node**, gimple_statement_base**)
../../gcc-4.9.2_source/gcc/gimplify.c:5373
0x7fa40d gimplify_cleanup_point_expr
../../gcc-4.9.2_source/gcc/gimplify.c:5149
0x7fa40d gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
../../gcc-4.9.2_source/gcc/gimplify.c:7990
0x7fc576 gimplify_stmt(tree_node**, gimple_statement_base**)
../../gcc-4.9.2_source/gcc/gimplify.c:5373
0x7fb023 gimplify_statement_list
../../gcc-4.9.2_source/gcc/gimplify.c:1432
0x7fb023 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
../../gcc-4.9.2_source/gcc/gimplify.c:8042
0x7fc576 gimplify_stmt(tree_node**, gimple_statement_base**)
../../gcc-4.9.2_source/gcc/gimplify.c:5373
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-481110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 22 12:55:04 2015
Return-Path: <gcc-bugs-return-481110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22752 invoked by alias); 22 Mar 2015 12:55:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22334 invoked by uid 48); 22 Mar 2015 12:55:00 -0000
From: "development@faf-ltd.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65513] gcc stops with "internal compiler error"
Date: Sun, 22 Mar 2015 14:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: development@faf-ltd.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65513-4-hvewpjM5zT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65513-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65513-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-03/txt/msg02254.txt.bz2
Content-length: 286
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide513
--- Comment #1 from Peter VARGA <development@faf-ltd.com> ---
One of these following steps do not produce any error message and the compiler
can finish successfully:
1) Add {} to the sDateTime member
2) Remove the std::atomic member
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65513] gcc stops with "internal compiler error"
2015-03-22 14:37 [Bug c++/65513] New: gcc stops with "internal compiler error" development@faf-ltd.com
@ 2015-03-23 9:40 ` mpolacek at gcc dot gnu.org
2015-03-23 9:51 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-03-23 9:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65513
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Severity|blocker |normal
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65513] gcc stops with "internal compiler error"
2015-03-22 14:37 [Bug c++/65513] New: gcc stops with "internal compiler error" development@faf-ltd.com
2015-03-23 9:40 ` [Bug c++/65513] " mpolacek at gcc dot gnu.org
@ 2015-03-23 9:51 ` mpolacek at gcc dot gnu.org
2015-03-24 10:29 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-03-23 9:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65513
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-03-23
Ever confirmed|0 |1
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The ICE on the reduced testcase was fixed in r213690.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65513] gcc stops with "internal compiler error"
2015-03-22 14:37 [Bug c++/65513] New: gcc stops with "internal compiler error" development@faf-ltd.com
2015-03-23 9:40 ` [Bug c++/65513] " mpolacek at gcc dot gnu.org
2015-03-23 9:51 ` mpolacek at gcc dot gnu.org
@ 2015-03-24 10:29 ` paolo.carlini at oracle dot com
2015-03-24 10:31 ` paolo at gcc dot gnu.org
2015-03-24 10:31 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-24 10:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65513
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I'm adding the reduced testcase and closing the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65513] gcc stops with "internal compiler error"
2015-03-22 14:37 [Bug c++/65513] New: gcc stops with "internal compiler error" development@faf-ltd.com
` (2 preceding siblings ...)
2015-03-24 10:29 ` paolo.carlini at oracle dot com
@ 2015-03-24 10:31 ` paolo at gcc dot gnu.org
2015-03-24 10:31 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-03-24 10:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65513
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Mar 24 10:24:33 2015
New Revision: 221620
URL: https://gcc.gnu.org/viewcvs?rev=221620&root=gcc&view=rev
Log:
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65513
* g++.dg/cpp0x/constexpr-array11.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-array11.C
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65513] gcc stops with "internal compiler error"
2015-03-22 14:37 [Bug c++/65513] New: gcc stops with "internal compiler error" development@faf-ltd.com
` (3 preceding siblings ...)
2015-03-24 10:31 ` paolo at gcc dot gnu.org
@ 2015-03-24 10:31 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-24 10:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65513
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |5.0
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-24 10:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-22 14:37 [Bug c++/65513] New: gcc stops with "internal compiler error" development@faf-ltd.com
2015-03-23 9:40 ` [Bug c++/65513] " mpolacek at gcc dot gnu.org
2015-03-23 9:51 ` mpolacek at gcc dot gnu.org
2015-03-24 10:29 ` paolo.carlini at oracle dot com
2015-03-24 10:31 ` paolo at gcc dot gnu.org
2015-03-24 10:31 ` paolo.carlini at oracle dot com
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).