diff options
author | Jason Merrill <jason@redhat.com> | 2008-07-31 05:07:10 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2008-07-31 05:07:10 +0000 |
commit | 9cdd6172bc7b8a36cadd576d539be9c4ae44f32f (patch) | |
tree | 4c377201cbda61af3498bf53c2cea3af56936cd1 /gcc/testsuite/g++.dg/lookup/new1.C | |
parent | 52de999db7da9255efbdb82d5db82bc9c330199d (diff) |
PR c++/11309
* tree.c (build_aggr_init_expr): Split out...
(build_cplus_new): ...from here.
(stabilize_init): Don't mess with AGGR_INIT_EXPR either.
* init.c (build_new_1): new T() means value-initialization,
not default-initialization.
(build_vec_init): Likewise.
(build_value_init_1): Use build_aggr_init_expr.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@138355 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/new1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/new1.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/new1.C b/gcc/testsuite/g++.dg/lookup/new1.C index b9d0bef88f6..ae1121339cf 100644 --- a/gcc/testsuite/g++.dg/lookup/new1.C +++ b/gcc/testsuite/g++.dg/lookup/new1.C @@ -4,10 +4,10 @@ int main() { int i; - void* operator new(unsigned s, int* p); + void* operator new(__SIZE_TYPE__ s, int* p); int* e = new(&i) int; // { dg-error "no matching function" } int* f = new int; return 0; } -// { dg-excess-errors "operator new" } +// { dg-error "candidate" "" { target *-*-* } 0 } |