public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67844] New: Cannot make tuple of class with template constructor
@ 2015-10-04 18:41 rbock at eudoxos dot de
2015-10-04 21:29 ` [Bug c++/67844] [6 Regression] " redi at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: rbock at eudoxos dot de @ 2015-10-04 18:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844
Bug ID: 67844
Summary: Cannot make tuple of class with template constructor
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rbock at eudoxos dot de
Target Milestone: ---
Created attachment 36443
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36443&action=edit
struct with template constructor, instantiate, try to make_tuple from the
instance
If the constructor of a class is a template (see attached code), trying to call
make_tuple on an instance of this class fails to compile with g++-6.0.0.
The first error in the output is
include/c++/6.0.0/type_traits:138:12: error: invalid use of incomplete type
‘struct std::is_convertible<const std::tuple<A>&, A>’
g++-4.9 as well as clang-3.[456] compile the code just fine.
>From gcc-bugs-return-498730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 04 19:13:55 2015
Return-Path: <gcc-bugs-return-498730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61280 invoked by alias); 4 Oct 2015 19:13:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61244 invoked by uid 48); 4 Oct 2015 19:13:51 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/67843] experimental/filesystem/iterators/directory_iterator.cc fails on armv5t
Date: Sun, 04 Oct 2015 19:13: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67843-4-SxuYcOZprA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67843-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67843-4@http.gcc.gnu.org/bugzilla/>
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-10/txt/msg00285.txt.bz2
Content-length: 246
https://gcc.gnu.org/bugzilla/show_bug.cgi?idg843
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I'm unable to build an armv7 toolchain, it keeps failing with an ICE, so I'll
need more information to do anything about this.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67844] [6 Regression] Cannot make tuple of class with template constructor
2015-10-04 18:41 [Bug c++/67844] New: Cannot make tuple of class with template constructor rbock at eudoxos dot de
@ 2015-10-04 21:29 ` redi at gcc dot gnu.org
2015-10-05 1:55 ` ville.voutilainen at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2015-10-04 21:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-10-04
CC| |ville at gcc dot gnu.org
Target Milestone|--- |6.0
Summary|Cannot make tuple of class |[6 Regression] Cannot make
|with template constructor |tuple of class with
| |template constructor
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ville, I haven't looked into what's happening here yet, do you see anything
obvious?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67844] [6 Regression] Cannot make tuple of class with template constructor
2015-10-04 18:41 [Bug c++/67844] New: Cannot make tuple of class with template constructor rbock at eudoxos dot de
2015-10-04 21:29 ` [Bug c++/67844] [6 Regression] " redi at gcc dot gnu.org
@ 2015-10-05 1:55 ` ville.voutilainen at gmail dot com
2015-10-05 7:47 ` ville.voutilainen at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-10-05 1:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |ville.voutilainen at gmail dot com
Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail dot com
--- Comment #2 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
To the extent anything in this area is obvious, yes. :) The check for
non-nested tuple ends up in infinite meta-recursion because A is constructible
from the tuple itself. I think that can be tackled by adding an is_same
check to _TNTC so that the converting templates that take a tuple
outright reject tuples that are the same as the tuple itself. Fixing...
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67844] [6 Regression] Cannot make tuple of class with template constructor
2015-10-04 18:41 [Bug c++/67844] New: Cannot make tuple of class with template constructor rbock at eudoxos dot de
2015-10-04 21:29 ` [Bug c++/67844] [6 Regression] " redi at gcc dot gnu.org
2015-10-05 1:55 ` ville.voutilainen at gmail dot com
@ 2015-10-05 7:47 ` ville.voutilainen at gmail dot com
2015-10-05 8:43 ` rbock at eudoxos dot de
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-10-05 7:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844
--- Comment #3 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Patch available https://gcc.gnu.org/ml/gcc-patches/2015-10/msg00358.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67844] [6 Regression] Cannot make tuple of class with template constructor
2015-10-04 18:41 [Bug c++/67844] New: Cannot make tuple of class with template constructor rbock at eudoxos dot de
` (2 preceding siblings ...)
2015-10-05 7:47 ` ville.voutilainen at gmail dot com
@ 2015-10-05 8:43 ` rbock at eudoxos dot de
2015-10-05 9:58 ` ville.voutilainen at gmail dot com
2015-10-05 9:58 ` ville at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rbock at eudoxos dot de @ 2015-10-05 8:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844
--- Comment #4 from Roland B <rbock at eudoxos dot de> ---
(In reply to Ville Voutilainen from comment #3)
> Patch available https://gcc.gnu.org/ml/gcc-patches/2015-10/msg00358.html
Works for me (sqlpp11, develop branch).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67844] [6 Regression] Cannot make tuple of class with template constructor
2015-10-04 18:41 [Bug c++/67844] New: Cannot make tuple of class with template constructor rbock at eudoxos dot de
` (4 preceding siblings ...)
2015-10-05 9:58 ` ville.voutilainen at gmail dot com
@ 2015-10-05 9:58 ` ville at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: ville at gcc dot gnu.org @ 2015-10-05 9:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844
--- Comment #5 from ville at gcc dot gnu.org ---
Author: ville
Date: Mon Oct 5 09:57:20 2015
New Revision: 228468
URL: https://gcc.gnu.org/viewcvs?rev=228468&root=gcc&view=rev
Log:
2015-10-05 Ville Voutilainen <ville.voutilainen@gmail.com>
PR 67844.
* include/std/tuple (_TC::_NonNestedTuple): Eagerly reject
conversions from tuple types same as the target tuple.
* testsuite/20_util/tuple/67844.cc: New.
* testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Add
a missing copyright header.
Added:
trunk/libstdc++-v3/testsuite/20_util/tuple/67844.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/tuple
trunk/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67844] [6 Regression] Cannot make tuple of class with template constructor
2015-10-04 18:41 [Bug c++/67844] New: Cannot make tuple of class with template constructor rbock at eudoxos dot de
` (3 preceding siblings ...)
2015-10-05 8:43 ` rbock at eudoxos dot de
@ 2015-10-05 9:58 ` ville.voutilainen at gmail dot com
2015-10-05 9:58 ` ville at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-10-05 9:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Fixed on trunk.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-10-05 9:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-04 18:41 [Bug c++/67844] New: Cannot make tuple of class with template constructor rbock at eudoxos dot de
2015-10-04 21:29 ` [Bug c++/67844] [6 Regression] " redi at gcc dot gnu.org
2015-10-05 1:55 ` ville.voutilainen at gmail dot com
2015-10-05 7:47 ` ville.voutilainen at gmail dot com
2015-10-05 8:43 ` rbock at eudoxos dot de
2015-10-05 9:58 ` ville.voutilainen at gmail dot com
2015-10-05 9:58 ` ville at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).