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
643aee72
Commit
643aee72
authored
Jan 05, 2004
by
Mark Mitchell
Committed by
Mark Mitchell
Jan 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parser.c (cp_parser_parameter_declaration): Fix comment.
From-SVN: r75409
parent
ae0eb5f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
gcc/cp/ChangeLog
+2
-0
gcc/cp/parser.c
+6
-4
No files found.
gcc/cp/ChangeLog
View file @
643aee72
2004-01-04 Mark Mitchell <mark@codesourcery.com>
* parser.c (cp_parser_parameter_declaration): Fix comment.
PR c++/12226
* call.c (CHECK_COPY_CONSTRUCTOR_P): New macro.
(reference_binding): Set it when appropriate.
...
...
gcc/cp/parser.c
View file @
643aee72
...
...
@@ -3909,8 +3909,9 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p)
/* These operators may not appear in constant-expressions. */
if
(
parser
->
integral_constant_expression_p
/* The "->" operator is allowed in the implementation
of "offsetof". */
&&
!
(
parser
->
in_offsetof_p
&&
token_type
==
CPP_DEREF
))
of "offsetof". The "." operator may appear in the
name of the member. */
&&
!
parser
->
in_offsetof_p
)
{
if
(
!
parser
->
allow_non_integral_constant_expression_p
)
postfix_expression
...
...
@@ -10977,12 +10978,13 @@ cp_parser_parameter_declaration (cp_parser *parser,
expression. Therefore, if parsing tentatively, we commit at
this point. */
if
(
!
parser
->
in_template_argument_list_p
/*
H
aving seen:
/*
In an expression context, h
aving seen:
(int((char *)...
we cannot be sure whether we are looking at a
function-type (taking a */
function-type (taking a "char*" as a parameter) or a cast
of some object of type "char*" to "int". */
&&
!
parser
->
in_type_id_in_expr_p
&&
cp_parser_parsing_tentatively
(
parser
)
&&
!
cp_parser_committed_to_tentative_parse
(
parser
)
...
...
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