This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78715] [concepts] Access specifiers ignored after concept declaration
- From: "Casey at Carter dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Apr 2017 20:46:53 +0000
- Subject: [Bug c++/78715] [concepts] Access specifiers ignored after concept declaration
- Auto-submitted: auto-generated
- References: <bug-78715-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78715
Casey Carter <Casey at Carter dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Casey at Carter dot net
--- Comment #1 from Casey Carter <Casey at Carter dot net> ---
Another simple program that reproduces this bug with 6.3 and trunk:
template <class, class>
concept bool C1 = true;
template <class>
concept bool C2 = requires { { 42 } -> C1<int>; };
int main() {
class A { int x; } a;
a.x = 42;
}
Use of a partial-concept-id as a constrained-type-specifier seems to be the
trigger.