public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67655] New: [concepts] expression constraints and variadic expansions
@ 2015-09-20 18:00 ryan.burn at gmail dot com
0 siblings, 0 replies; only message in thread
From: ryan.burn at gmail dot com @ 2015-09-20 18:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67655
Bug ID: 67655
Summary: [concepts] expression constraints and variadic
expansions
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ryan.burn at gmail dot com
Target Milestone: ---
I expect the following should be valid code:
####### BEGIN CODE ########
template<class... Xs>
void consume(Xs&&...) {}
template<class... Xs>
struct A {
template<class... Ys>
requires requires(Ys... ys) {
consume(Xs{ys}...);
}
A(Ys&&... ys) {
}
A(int) {}
};
int main() {
A<int, double> a(55);
return 0;
}
####### END CODE ########
with the first first of the constructor being disabled and the second matching.
But this gives the compilation error:
t2.cpp: In instantiation of ‘struct A<int, double>’:
t2.cpp:16:19: required from here
t2.cpp:8:14: error: mismatched argument pack lengths while expanding ‘Xs{ys}’
consume(Xs{ys}...);
Looking through N4377, I'm not entirely sure how this should be treated, but
would think it should just mean that the expression constraint
consume(Xs{ys}...) shouldn't be satisfied instead of triggering a hard error.
>From gcc-bugs-return-497623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 20 18:08:35 2015
Return-Path: <gcc-bugs-return-497623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44388 invoked by alias); 20 Sep 2015 18:08:34 -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 44279 invoked by uid 55); 20 Sep 2015 18:08:31 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/67619] ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
Date: Sun, 20 Sep 2015 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67619-4-vDi1NTy30O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67619-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67619-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-09/txt/msg01601.txt.bz2
Content-length: 506
https://gcc.gnu.org/bugzilla/show_bug.cgi?idg619
--- Comment #3 from uros at gcc dot gnu.org ---
Author: uros
Date: Sun Sep 20 18:07:58 2015
New Revision: 227952
URL: https://gcc.gnu.org/viewcvs?rev"7952&root=gcc&view=rev
Log:
PR middle-end/67619
* lib/target-supports.exp (check_effective_target_builtin_eh_return):
New procedure.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/torture/pr67619.c
trunk/gcc/testsuite/lib/target-supports.exp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-20 18:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-20 18:00 [Bug c++/67655] New: [concepts] expression constraints and variadic expansions ryan.burn at gmail dot com
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).