From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23102 invoked by alias); 29 Jul 2014 00:22:45 -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 22358 invoked by uid 48); 29 Jul 2014 00:22:41 -0000 From: "martin at steghoefer dot eu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61940] New: Wrong error location for error in initialization list Date: Tue, 29 Jul 2014 00:22: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.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: martin at steghoefer dot eu 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 attachments.created 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: 2014-07/txt/msg01866.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61940 Bug ID: 61940 Summary: Wrong error location for error in initialization list Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: martin at steghoefer dot eu Created attachment 33199 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D33199&action=3Dedit Example that provokes an error message with a wrong location When using several initializers in a constructor initializer list, an error= in one of the initializers (e.g. a conversion from a const pointer to a non-co= nst pointer, like in the attached example) is reported by gcc on the last token= of the *whole* initializer list (not the last token of the erroneous initializ= er). This behavior is independent of the erroneous initializer being a member initialization or a call to a super-class constructor. Reproduce: g++ gcc-wrong-error-location.ii Output: gcc-wrong-error-location.cxx: In constructor =E2=80=98Class::Class(const do= uble*)=E2=80=99: gcc-wrong-error-location.cxx:13:19: error: invalid conversion from =E2=80= =98const double*=E2=80=99 to =E2=80=98double*=E2=80=99 [-fpermissive] m_otherMemberB(1) // good initialization (shown as erron= eous line) ^ gcc version: Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 4.8.2-19ub= untu1' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=3Dc,c++,java,go,d,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.8 --enable-shared --enable-linker-build-id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.8 --libdir=3D/usr/lib --enable-= nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-gnu-unique-object --disable-libmudfl= ap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=3Dgtk --enable-gtk-cairo --with-java-home=3D/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-= home --with-jvm-root-dir=3D/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=3D/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=3Damd64 --with-ecj-jar=3D/usr/share/java/eclipse-ecj.= jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) >>From gcc-bugs-return-457276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 29 01:44:58 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28782 invoked by alias); 29 Jul 2014 01:44:57 -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 28349 invoked by uid 48); 29 Jul 2014 01:44:42 -0000 From: "thiago at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61941] New: Mis-parsing of warn_unused_result function with ref-qualifiers Date: Tue, 29 Jul 2014 01:44: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: normal X-Bugzilla-Who: thiago at kde dot 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg01867.txt.bz2 Content-length: 1613 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61941 Bug ID: 61941 Summary: Mis-parsing of warn_unused_result function with ref-qualifiers Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: thiago at kde dot org Testcase: =3D=3D=3D=3D class S { public: S x() const __attribute__ ((__warn_unused_result__)); S y() const & __attribute__ ((__warn_unused_result__)); S y() && __attribute__ ((__warn_unused_result__)); }; =3D=3D=3D=3D (Almost minimal testcase; remove the last __attribute__((__warn_unused_result__)) for truly minimal) When compiled produces the following output: test.ii:7:7: error: =E2=80=98S S::y() &&=E2=80=99 cannot be overloaded S y() && __attribute__ ((__warn_unused_result__)); ^ test.ii:6:7: error: with =E2=80=98S S::y() const=E2=80=99 S y() const & __attribute__ ((__warn_unused_result__)); ^ Tested with GCC 4.8.1 (openSUSE 13.1) and 4.9.2 (gcc-4_8-branch revision 213070). If you read only the error message, it is correct: "S::y() &&" cannot be overloaded with "S::y() const". However. the overload of y on line 6 that G= CC complains about is actually "S::y() const &", which is allowed to be overloaded. Somehow the & ref-qualifier got lost in the parsing. The error does not depend on the order of lines 6 and 7. It does depend on S::x() const appearing before S::y() const & and that both functions have t= he attribute. >>From gcc-bugs-return-457277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 29 02:47:12 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13702 invoked by alias); 29 Jul 2014 02:47:02 -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 13056 invoked by uid 48); 29 Jul 2014 02:46:03 -0000 From: "zhenqiang.chen at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59837] [ARM] ICE when building linux-linaro-tracking Date: Tue, 29 Jul 2014 02:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhenqiang.chen at linaro dot org X-Bugzilla-Status: RESOLVED 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_status resolution 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: 2014-07/txt/msg01868.txt.bz2 Content-length: 341 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59837 zhenqiang.chen at linaro dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |FIXED