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
6bc7be5f
Commit
6bc7be5f
authored
Feb 13, 1998
by
Jason Merrill
Committed by
Jason Merrill
Feb 13, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (determine_specialization): Give better errors.
From-SVN: r17970
parent
e3e7774e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+11
-5
No files found.
gcc/cp/ChangeLog
View file @
6bc7be5f
Fri Feb 13 14:30:35 1998 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (determine_specialization): Give better errors.
Fri Feb 13 14:06:22 1998 Mike Stump <mrs@wrs.com>
* init.c (build_new): Propagate error_mark_node up.
...
...
gcc/cp/pt.c
View file @
6bc7be5f
...
...
@@ -519,7 +519,15 @@ determine_specialization (template_id, decl, targs_out,
tmpl
=
DECL_TI_TEMPLATE
(
fn
);
else
if
(
TREE_CODE
(
fn
)
!=
TEMPLATE_DECL
||
(
need_member_template
&&
!
is_member_template
(
fn
)))
continue
;
{
if
(
decls_match
(
decl
,
fn
))
{
cp_error
(
"`template <>' applied to non-specialization `%D'"
,
fn
);
return
NULL_TREE
;
}
continue
;
}
else
tmpl
=
fn
;
...
...
@@ -564,8 +572,7 @@ determine_specialization (template_id, decl, targs_out,
{
no_match
:
if
(
complain
)
cp_error
(
"`%D' does not match any template declaration"
,
template_id
);
cp_error
(
"`%D' does not match any template declaration"
,
decl
);
return
NULL_TREE
;
}
...
...
@@ -574,8 +581,7 @@ determine_specialization (template_id, decl, targs_out,
ambiguous
:
if
(
complain
)
{
cp_error
(
"ambiguous template specialization `%D'"
,
template_id
);
cp_error
(
"ambiguous template specialization `%D'"
,
decl
);
print_candidates
(
templates
);
}
return
NULL_TREE
;
...
...
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