From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20014 invoked by alias); 22 Mar 2015 12:52:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19997 invoked by uid 48); 22 Mar 2015 12:52:52 -0000 From: "development@faf-ltd.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65513] New: gcc stops with "internal compiler error" Date: Sun, 22 Mar 2015 14:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg02253.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65513 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 class LogEntries { public: char sDateTime [20]; std::atomic bReadyToFlush; }; class LogThreads { public: static LogEntries leLogEntries [10]; }; LogEntries LogThreads::leLogEntries [10] {}; Compiler options: g++ -v -save-temps -std=3Dc++11 gcc-warning-bug-2.cpp -Wall -Wextra -c -Wer= ror -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations Output: Using built-in specs. COLLECT_GCC=3Dg++ 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=3D'-v' '-save-temps' '-std=3Dc++11' '-Wall' '-Wextra' '= -c' '-Werror' '-fno-strict-aliasing' '-fwrapv' '-fno-aggressive-loop-optimizati= ons' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-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=3Dgeneric -march=3Dx86-64 -std= =3Dc++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-unkno= wn-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=3D'-v' '-save-temps' '-std=3Dc++11' '-Wall' '-Wextra' '= -c' '-Werror' '-fno-strict-aliasing' '-fwrapv' '-fno-aggressive-loop-optimizati= ons' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1plus -fpreprocess= ed gcc-warning-bug-2.ii -quiet -dumpbase gcc-warning-bug-2.cpp -mtune=3Dgeneric -march=3Dx86-64 -auxbase gcc-warning-bug-2 -Wall -Wextra -Werror -std=3Dc++= 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=3D100 --param ggc-min-heapsize=3D131= 072 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=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 660c5687a086ea3686f43ea5e642dd2c gcc-warning-bug-2.cpp:16:43: error: missing initializer for member =E2=80=98LogEntries::sDateTime=E2=80=99 [-Werror=3Dmissing-field-initialize= rs] LogEntries LogThreads::leLogEntries [10] {}; ^ gcc-warning-bug-2.cpp:16:43: error: missing initializer for member =E2=80=98LogEntries::bReadyToFlush=E2=80=99 [-Werror=3Dmissing-field-initia= lizers] gcc-warning-bug-2.cpp: In function =E2=80=98void __static_initialization_and_destruction_0(int, int)=E2=80=99: 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 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: 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: List-Archive: List-Post: List-Help: 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" 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: In-Reply-To: References: 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?id=65513 --- Comment #1 from Peter VARGA --- 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