Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
e4307389
Commit
e4307389
authored
Apr 04, 2017
by
Jason Merrill
Committed by
Jason Merrill
Apr 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* semantics.c (finish_template_type): Check CLASSTYPE_TEMPLATE_INFO.
From-SVN: r246680
parent
15f12d96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/semantics.c
+1
-0
gcc/testsuite/g++.dg/concepts/regress/alias-decl-42.C
+18
-0
No files found.
gcc/cp/ChangeLog
View file @
e4307389
2017-04-03 Jason Merrill <jason@redhat.com>
* semantics.c (finish_template_type): Check CLASSTYPE_TEMPLATE_INFO.
2017-04-03 Jonathan Wakely <jwakely@redhat.com>
* class.c (update_vtable_entry_for_fn): Fix typo in comment.
...
...
gcc/cp/semantics.c
View file @
e4307389
...
...
@@ -3157,6 +3157,7 @@ finish_template_type (tree name, tree args, int entering_scope)
if
(
flag_concepts
&&
entering_scope
&&
CLASS_TYPE_P
(
type
)
&&
CLASSTYPE_TEMPLATE_INFO
(
type
)
&&
dependent_type_p
(
type
)
&&
PRIMARY_TEMPLATE_P
(
CLASSTYPE_TI_TEMPLATE
(
type
)))
type
=
fixup_template_type
(
type
);
...
...
gcc/testsuite/g++.dg/concepts/regress/alias-decl-42.C
0 → 100644
View file @
e4307389
// PR c++/59200
// { dg-options "-std=c++1z -fconcepts" }
struct
A
{
static
constexpr
bool
value
=
true
;
};
template
<
typename
T
>
struct
B
{
template
<
typename
U
>
using
C
=
A
;
};
template
<
typename
T
>
template
<
typename
U
>
const
bool
B
<
T
>::
C
<
U
>::
value
;
// { dg-error "too many" }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment