From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101117 invoked by alias); 23 May 2015 11:18:22 -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 100841 invoked by uid 55); 23 May 2015 11:18:11 -0000 From: "fdumont at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/64657] Support iterators with overloaded operator-comma Date: Sat, 23 May 2015 11:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: minor X-Bugzilla-Who: fdumont at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 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: 2015-05/txt/msg01982.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64657 --- Comment #4 from Fran=C3=A7ois Dumont --- Author: fdumont Date: Sat May 23 11:17:38 2015 New Revision: 223605 URL: https://gcc.gnu.org/viewcvs?rev=3D223605&root=3Dgcc&view=3Drev Log: 2015-05-23 Fran=C3=A7ois Dumont fdumont@gcc.gnu.org> PR libstdc++/64657 * include/debug/functions.h (__check_sorted_aux): Cast expression to void. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/debug/functions.h >>From gcc-bugs-return-487143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 23 12:20:43 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68398 invoked by alias); 23 May 2015 12:20:42 -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 68354 invoked by uid 48); 23 May 2015 12:20:36 -0000 From: "paboyle at ph dot ed.ac.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66153] Internal compiler error in nested template function Date: Sat, 23 May 2015 12:20: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: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: paboyle at ph dot ed.ac.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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-05/txt/msg01983.txt.bz2 Content-length: 797 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #3 from Peter Boyle --- http://stackoverflow.com/questions/30411079/counting-template-recursion-nest-depth Appears to affect all versions of g++ with various errors. Used: http://melpon.org/wandbox/permlink/eK2AVfZXXss0ZDu6 All versions of clang after 3.1 accept the code. Disambiguating "function(Container)" from function manually by renaming function(Container) to ffunction(Container) makes it operate in the same way as ICPC and Clang. However, this should not have been necessary because substitution failure should have caused it to select the right "function" in every case At least, I believe it should work as original, clang believes and icpc believes, but g++ does not.