From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36119 invoked by alias); 4 Jul 2015 21:04:38 -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 36088 invoked by uid 48); 4 Jul 2015 21:04:34 -0000 From: "quentin.c.diaz at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66766] New:=?UTF-8?Q?=20Reference=20to=20an=20=E2=80=9Cauto=E2=80=9D=20function=20as=20a=20template=20parameter?= Date: Sat, 04 Jul 2015 21:04: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: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: quentin.c.diaz at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone 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-07/txt/msg00343.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66766 Bug ID: 66766 Summary: Reference to an =E2=80=9Cauto=E2=80=9D function as a te= mplate parameter Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: quentin.c.diaz at gmail dot com Target Milestone: --- The following code : template struct Foo { static auto value() {} }; void bar() {} template struct Foo::value>; Causes the following error : error: could not convert template argument =E2=80=98Foo::value=E2= =80=99 to =E2=80=98void (&)()=E2=80=99 template struct Foo::value>; ^ Any of the following makes it compile successfully : - Declaring value() as returning void instead of deducing it - "Dereferencing" value : template struct Foo<*Foo::value>; - Parenthesizing value : template struct Foo<(Foo::value)>; - Making a a pointer : template struct Foo ... >>From gcc-bugs-return-491454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jul 04 23:19:16 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15662 invoked by alias); 4 Jul 2015 23:19:16 -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 15623 invoked by uid 48); 4 Jul 2015 23:19:12 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52251] Nonadvancing I/O and the t edit descriptor Date: Sat, 04 Jul 2015 23:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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-07/txt/msg00344.txt.bz2 Content-length: 423 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52251 --- Comment #6 from Jerry DeLisle --- Created attachment 35911 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35911&action=edit A patch to fix this. This patch issues the tab spacing based on spaces previously skipped pending transfer of data. In the test case, there is no data transferred so we were skipping handling the skips.