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
4806765e
Commit
4806765e
authored
Feb 14, 2001
by
Aldy Hernandez
Committed by
Aldy Hernandez
Feb 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optional parens around connstructor names
From-SVN: r39681
parent
bfc8e1e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
gcc/cp/ChangeLog
+5
-0
gcc/cp/parse.y
+12
-4
No files found.
gcc/cp/ChangeLog
View file @
4806765e
2001-02-08 Aldy Hernandez <aldyh@redhat.com>
* cp/parse.y (component_constructor_declarator): allow optional
parenthesess around constructor class name.
2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
...
...
gcc/cp/parse.y
View file @
4806765e
...
...
@@ -816,11 +816,19 @@ fn.def1:
YYERROR1; }
;
/* ANSI allows optional parentheses around constructor class names.
See ISO/IEC 14882:1998(E) 12.1. */
component_constructor_declarator:
SELFNAME '(' parmlist ')' cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($1, $3, $5, $6); }
| SELFNAME LEFT_RIGHT cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($1, empty_parms (), $3, $4); }
SELFNAME '(' parmlist ')' cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($1, $3, $5, $6); }
| '(' SELFNAME ')' '(' parmlist ')' cv_qualifiers
exception_specification_opt
{ $$ = make_call_declarator ($2, $5, $7, $8); }
| SELFNAME LEFT_RIGHT cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($1, empty_parms (), $3, $4); }
| '(' SELFNAME ')' LEFT_RIGHT cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($2, empty_parms (), $5, $6); }
| self_template_type '(' parmlist ')' cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($1, $3, $5, $6); }
| self_template_type LEFT_RIGHT cv_qualifiers exception_specification_opt
...
...
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