From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17966 invoked by alias); 27 Sep 2013 00:24:20 -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 17732 invoked by uid 48); 27 Sep 2013 00:24:16 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/58547] New: [4.9 Regression] rtlanal.c:5482:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] Date: Fri, 27 Sep 2013 00:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org 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 cf_gcchost cf_gcctarget cf_gccbuild 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: 2013-09/txt/msg01877.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58547 Bug ID: 58547 Summary: [4.9 Regression] rtlanal.c:5482:19: error: comparison between signed and unsigned integer expressions [-Werror=3Dsign-compare] Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu Bootstrap is broken: /home/dave/gnu/gcc/objdir/./prev-gcc/xg++ -B/home/dave/gnu/gcc/objdir/./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.9/hppa-linux-gnu/bin/ -nostdinc++ -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-l= inux-gnu -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc ++-v3/libsupc++ -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src /.libs -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.l ibs -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-table s -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror - fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gc c/gcc/../include -I../../gcc/gcc/../libcpp/include=20 -I../../gcc/gcc/../libdecnum ber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../lib backtrace -DCLOOG_INT_GMP -o rtlanal.o -MT rtlanal.o -MMD -MP -MF ./.deps/rtl anal.TPo ../../gcc/gcc/rtlanal.c ../../gcc/gcc/rtlanal.c: In function =E2=80=98bool lsb_bitfield_op_p(rtx)= =E2=80=99: ../../gcc/gcc/rtlanal.c:5482:19: error: comparison between signed and unsig= ned integer expressions [-Werror=3Dsign-compare] return (pos =3D=3D (BITS_BIG_ENDIAN ? GET_MODE_PRECISION (mode) - le= n : 0)); ^ make[3]: *** [rtlanal.o] Error 1 >>From gcc-bugs-return-430638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 27 02:26:37 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11111 invoked by alias); 27 Sep 2013 02:26:36 -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 11053 invoked by uid 48); 27 Sep 2013 02:26:32 -0000 From: "jjcogliati-r1 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/53001] -Wfloat-conversion should be available to warn about floating point errors Date: Fri, 27 Sep 2013 02:26: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jjcogliati-r1 at yahoo dot 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01878.txt.bz2 Content-length: 646 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53001 --- Comment #18 from Joshua Cogliati --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #17) > (In reply to Joshua Cogliati from comment #16) > > This does not bootstrap trunk yet, because gcc has floating conversion > > issues and with this being enabled by -Wextra and with -Werror, gcc fai= ls to > > build. >=20 > Are those real bugs or normal code? So far they seem to be normal code. I'll try eliminating the warning on a = few, but if there are too many I'll just split the patch into the basic warning = and one that occurs on -Wextra. >>From gcc-bugs-return-430639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 27 06:01:36 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9855 invoked by alias); 27 Sep 2013 06:01:36 -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 9586 invoked by uid 48); 27 Sep 2013 06:01:30 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58548] New: ICE with local struct in function with auto parameter Date: Fri, 27 Sep 2013 06:01: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt at gcc dot gnu.org 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01879.txt.bz2 Content-length: 2537 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58548 Bug ID: 58548 Summary: ICE with local struct in function with auto parameter Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following code snippet triggers an ICE on trunk (4.9.0 20130926) when compiled with "-std=gnu++1y": =========================== void foo(auto) { struct A { int i; }; } =========================== bug.cc: In function 'void foo()': bug.cc:3:18: error: data member 'i' cannot be a member template struct A { int i; }; ^ neu40.cc:6:18: internal compiler error: in poplevel, at cp/decl.c:560 0x554850 poplevel(int, int, int) ../../gcc/gcc/cp/decl.c:560 0x58e568 end_template_decl() ../../gcc/gcc/cp/pt.c:3786 0x62ed7b finish_fully_implicit_template ../../gcc/gcc/cp/parser.c:29040 0x637ad1 cp_parser_member_declaration ../../gcc/gcc/cp/parser.c:20086 0x6381ee cp_parser_member_specification_opt ../../gcc/gcc/cp/parser.c:19630 0x6381ee cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:18885 0x63ab90 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:19101 0x63ab90 cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:14080 0x6500a9 cp_parser_decl_specifier_seq ../../gcc/gcc/cp/parser.c:11328 0x654139 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:10918 0x656140 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:10867 0x657230 cp_parser_declaration_statement ../../gcc/gcc/cp/parser.c:10514 0x63fad7 cp_parser_statement ../../gcc/gcc/cp/parser.c:9274 0x640dde cp_parser_statement_seq_opt ../../gcc/gcc/cp/parser.c:9552 0x640f26 cp_parser_compound_statement ../../gcc/gcc/cp/parser.c:9506 0x6522db cp_parser_function_body ../../gcc/gcc/cp/parser.c:18318 0x6522db cp_parser_ctor_initializer_opt_and_function_body ../../gcc/gcc/cp/parser.c:18354 0x65331f cp_parser_function_definition_after_declarator ../../gcc/gcc/cp/parser.c:22338 0x654027 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/gcc/cp/parser.c:22259 0x654027 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:16347 Please submit a full bug report, [etc.] Furthermore, IMHO the error message is bogus and the code should be accepted.