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
038fb86f
Commit
038fb86f
authored
May 22, 1998
by
Jason Merrill
Committed by
Jason Merrill
May 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (print_template_context): Use fprintf instead of cp_error.
From-SVN: r19950
parent
82a7448c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
gcc/cp/ChangeLog
+2
-0
gcc/cp/pt.c
+9
-10
No files found.
gcc/cp/ChangeLog
View file @
038fb86f
1998-05-22 Jason Merrill <jason@yorick.cygnus.com>
1998-05-22 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (print_template_context): Use fprintf instead of cp_error.
* pt.c (determine_specialization): Just return an error_mark_node.
* pt.c (determine_specialization): Just return an error_mark_node.
Also print the decl we want in error messages. If we complain,
Also print the decl we want in error messages. If we complain,
return error_mark_node.
return error_mark_node.
...
...
gcc/cp/pt.c
View file @
038fb86f
...
@@ -3346,14 +3346,15 @@ print_template_context (err)
...
@@ -3346,14 +3346,15 @@ print_template_context (err)
if
(
current_function_decl
==
p
->
decl
)
if
(
current_function_decl
==
p
->
decl
)
/* Avoid redundancy with the the "In function" line. */
;
/* Avoid redundancy with the the "In function" line. */
;
else
if
(
current_function_decl
==
NULL_TREE
)
else
if
(
current_function_decl
==
NULL_TREE
)
cp_error
(
"In instantiation of `%D':"
,
p
->
decl
);
fprintf
(
stderr
,
"In instantiation of `%s':
\n
"
,
decl_as_string
(
p
->
decl
,
0
));
else
else
my_friendly_abort
(
980521
);
my_friendly_abort
(
980521
);
if
(
p
)
if
(
p
)
{
{
line
no
=
p
->
line
;
line
=
p
->
line
;
input_filenam
e
=
p
->
file
;
fil
e
=
p
->
file
;
p
=
p
->
next
;
p
=
p
->
next
;
}
}
}
}
...
@@ -3361,14 +3362,12 @@ print_template_context (err)
...
@@ -3361,14 +3362,12 @@ print_template_context (err)
next
:
next
:
for
(;
p
;
p
=
p
->
next
)
for
(;
p
;
p
=
p
->
next
)
{
{
cp_error
(
" instantiated from `%D'"
,
p
->
decl
);
fprintf
(
stderr
,
"%s:%d: instantiated from `%s'
\n
"
,
file
,
line
,
lineno
=
p
->
line
;
decl_as_string
(
p
->
decl
,
0
));
input_filename
=
p
->
file
;
line
=
p
->
line
;
file
=
p
->
file
;
}
}
error
(
" instantiated from here"
);
fprintf
(
stderr
,
"%s:%d: instantiated from here
\n
"
,
file
,
line
);
lineno
=
line
;
input_filename
=
file
;
}
}
/* Called from cp_thing to print the template context for an error. */
/* Called from cp_thing to print the template context for an error. */
...
...
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