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
ba9c33e8
Commit
ba9c33e8
authored
25 years ago
by
Jason Merrill
Committed by
Jason Merrill
25 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* typeck.c (decay_conversion): Strip cv-quals from non-class rvalues.
From-SVN: r29762
parent
1bd83869
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/typeck.c
+5
-0
No files found.
gcc/cp/ChangeLog
View file @
ba9c33e8
1999-10-01 Jason Merrill <jason@yorick.cygnus.com>
* typeck.c (decay_conversion): Strip cv-quals from non-class rvalues.
1999-10-01 Mark Mitchell <mark@codesourcery.com>
* pt.c (tsubst_decl): If the type of a template instantiation is
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/typeck.c
View file @
ba9c33e8
...
...
@@ -1789,6 +1789,11 @@ decay_conversion (exp)
return
cp_convert
(
ptrtype
,
adr
);
}
/* [basic.lval]: Class rvalues can have cv-qualified types; non-class
rvalues always have cv-unqualified types. */
if
(
!
CLASS_TYPE_P
(
type
))
exp
=
cp_convert
(
TYPE_MAIN_VARIANT
(
type
),
exp
);
return
exp
;
}
...
...
This diff is collapsed.
Click to expand it.
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