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
8d42565b
Commit
8d42565b
authored
Dec 15, 2000
by
Jason Merrill
Committed by
Jason Merrill
Dec 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* init.c (build_new_1): Don't strip quals from type.
From-SVN: r38291
parent
fab09a24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
gcc/cp/ChangeLog
+2
-0
gcc/cp/init.c
+0
-3
gcc/testsuite/g++.old-deja/g++.other/new5.C
+12
-0
No files found.
gcc/cp/ChangeLog
View file @
8d42565b
2000-12-15 Jason Merrill <jason@redhat.com>
2000-12-15 Jason Merrill <jason@redhat.com>
* init.c (build_new_1): Don't strip quals from type.
* decl.c (pushdecl): Don't check for linkage on a non-decl.
* decl.c (pushdecl): Don't check for linkage on a non-decl.
* call.c (build_op_delete_call): See through ARRAY_TYPEs.
* call.c (build_op_delete_call): See through ARRAY_TYPEs.
...
...
gcc/cp/init.c
View file @
8d42565b
...
@@ -2268,9 +2268,6 @@ build_new_1 (exp)
...
@@ -2268,9 +2268,6 @@ build_new_1 (exp)
code
=
has_array
?
VEC_NEW_EXPR
:
NEW_EXPR
;
code
=
has_array
?
VEC_NEW_EXPR
:
NEW_EXPR
;
if
(
CP_TYPE_QUALS
(
type
))
type
=
TYPE_MAIN_VARIANT
(
type
);
/* If our base type is an array, then make sure we know how many elements
/* If our base type is an array, then make sure we know how many elements
it has. */
it has. */
while
(
TREE_CODE
(
true_type
)
==
ARRAY_TYPE
)
while
(
TREE_CODE
(
true_type
)
==
ARRAY_TYPE
)
...
...
gcc/testsuite/g++.old-deja/g++.other/new5.C
0 → 100644
View file @
8d42565b
// Test that const-correctness is observed when using new.
struct
A
{
A
()
{
}
int
f
()
{
return
1
;
}
int
f
()
const
{
return
0
;
}
};
int
main
()
{
return
(
new
const
A
)
->
f
();
}
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