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
55b467a0
Commit
55b467a0
authored
Jul 10, 2015
by
Jason Merrill
Committed by
Jason Merrill
Jul 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parser.c (cp_parser_template_id): SET_EXPR_LOCATION.
From-SVN: r225691
parent
b3ba1c09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/parser.c
+4
-0
No files found.
gcc/cp/ChangeLog
View file @
55b467a0
2015-07-10 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_template_id): SET_EXPR_LOCATION.
2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
* decl2.c (cpp_check): Revert latest change.
* decl2.c (cpp_check): Revert latest change.
...
...
gcc/cp/parser.c
View file @
55b467a0
...
@@ -13839,6 +13839,8 @@ cp_parser_template_id (cp_parser *parser,
...
@@ -13839,6 +13839,8 @@ cp_parser_template_id (cp_parser *parser,
else
if
(
variable_template_p
(
templ
))
else
if
(
variable_template_p
(
templ
))
{
{
template_id
=
lookup_template_variable
(
templ
,
arguments
);
template_id
=
lookup_template_variable
(
templ
,
arguments
);
if
(
TREE_CODE
(
template_id
)
==
TEMPLATE_ID_EXPR
)
SET_EXPR_LOCATION
(
template_id
,
next_token
->
location
);
}
}
else
else
{
{
...
@@ -13849,6 +13851,8 @@ cp_parser_template_id (cp_parser *parser,
...
@@ -13849,6 +13851,8 @@ cp_parser_template_id (cp_parser *parser,
||
BASELINK_P
(
templ
)));
||
BASELINK_P
(
templ
)));
template_id
=
lookup_template_function
(
templ
,
arguments
);
template_id
=
lookup_template_function
(
templ
,
arguments
);
if
(
TREE_CODE
(
template_id
)
==
TEMPLATE_ID_EXPR
)
SET_EXPR_LOCATION
(
template_id
,
next_token
->
location
);
}
}
/* If parsing tentatively, replace the sequence of tokens that makes
/* If parsing tentatively, replace the sequence of tokens that makes
...
...
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