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
a491b7be
Commit
a491b7be
authored
13 years ago
by
Jason Merrill
Committed by
Jason Merrill
13 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* init.c (perform_member_init): Cope with uninstantiated NSDMI.
From-SVN: r184877
parent
743af85b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
gcc/cp/ChangeLog
+2
-0
gcc/cp/init.c
+6
-0
gcc/testsuite/ChangeLog
+2
-0
gcc/testsuite/g++.dg/cpp0x/nsdmi-defer6.C
+8
-0
No files found.
gcc/cp/ChangeLog
View file @
a491b7be
2012-03-03 Jason Merrill <jason@redhat.com>
* init.c (perform_member_init): Cope with uninstantiated NSDMI.
Core 1270
* call.c (build_aggr_conv): Call reshape_init.
(convert_like_real): Likewise.
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/init.c
View file @
a491b7be
...
...
@@ -540,6 +540,12 @@ perform_member_init (tree member, tree init)
else
{
init
=
DECL_INITIAL
(
member
);
if
(
init
&&
TREE_CODE
(
init
)
==
DEFAULT_ARG
)
{
error
(
"constructor required before non-static data member "
"for %qD has been parsed"
,
member
);
init
=
NULL_TREE
;
}
/* Strip redundant TARGET_EXPR so we don't need to remap it, and
so the aggregate init code below will see a CONSTRUCTOR. */
if
(
init
&&
TREE_CODE
(
init
)
==
TARGET_EXPR
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/ChangeLog
View file @
a491b7be
2012-03-03 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/nsdmi-defer6.C: New.
Core 1270
* g++.dg/cpp0x/initlist65.C: New.
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.dg/cpp0x/nsdmi-defer6.C
0 → 100644
View file @
a491b7be
// { dg-do compile { target c++11 } }
struct
A
// { dg-error "non-static data member" }
{
int
i
=
(
A
(),
42
);
// { dg-message "required here" }
};
A
a
;
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