Re: [PATCH, c++, PR77427 ] Set TYPE_STRUCTURAL_EQUALITY for sysv_abi va_list

2016-09-03 Thread Richard Biener
On September 3, 2016 5:23:35 PM GMT+02:00, Tom de Vries wrote: >Hi, > >this patch fixes a c++ ICE, a p1 6/7 regression. > > >Consider test.C: >... >void bar (__builtin_va_list &); > >struct c >{ > operator const __builtin_va_list &(); > operator __builtin_va_list &(); >}; > >void >foo (void)

Re: [PATCH, 2/4] Replace error_at with assert in build_va_arg

2016-09-03 Thread Andreas Schwab
http://gcc.gnu.org/ml/gcc-testresults/2016-09/msg00298.html Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH, 2/4] Replace error_at with assert in build_va_arg

2016-09-03 Thread Tom de Vries
On 03/09/16 17:37, Andreas Schwab wrote: On Aug 24 2016, Tom de Vries wrote: > Replace error_at with assert in build_va_arg > > 2016-08-22 Tom de Vries > >* c-common.c (build_va_arg): Replace first argument type error >with assert. /daten/gcc/gcc-20160902/gcc/testsuite/c-c++-common

[v3, patch, variant] user-defined operator& and std::variant

2016-09-03 Thread Mikhail Strelnikov
Hello, Following code does not compile, #include namespace n { template void operator&(T) {} struct s{}; } int main() { std::variant v; std::get(v); } error: include/c++/7.0.0/variant:315:4: error: invalid static_cast diff -r -u a/libstdc++-v3/include/std/variant b/libstd

Re: Implement C _FloatN, _FloatNx types [version 6]

2016-09-03 Thread Andreas Schwab
On Aug 17 2016, Joseph Myers wrote: > Index: gcc/testsuite/gcc.dg/torture/float32-basic.c > === > --- gcc/testsuite/gcc.dg/torture/float32-basic.c (nonexistent) > +++ gcc/testsuite/gcc.dg/torture/float32-basic.c (working co

Re: C++ PATCH for c++/77379 (abi_tag on thunk)

2016-09-03 Thread Andreas Schwab
On Aug 29 2016, Jason Merrill wrote: > +// { dg-final { scan-assembler "_ZThn16_N7Derived7get_fooEv" } } > FAIL: g++.dg/abi/abi-tag23.C -std=gnu++98 scan-assembler _ZThn16_N7Derived7get_fooB3barEv $ grep _ZThn abi-tag23.s .long _ZThn8_N7Derived7get_fooB3barEv Andreas. -- Andrea

Re: [PATCH, 2/4] Replace error_at with assert in build_va_arg

2016-09-03 Thread Andreas Schwab
On Aug 24 2016, Tom de Vries wrote: > Replace error_at with assert in build_va_arg > > 2016-08-22 Tom de Vries > > * c-common.c (build_va_arg): Replace first argument type error > with assert. /daten/gcc/gcc-20160902/gcc/testsuite/c-c++-common/pr70651.c: In function 'void fn1()':

[PATCH, c++, PR77427 ] Set TYPE_STRUCTURAL_EQUALITY for sysv_abi va_list

2016-09-03 Thread Tom de Vries
Hi, this patch fixes a c++ ICE, a p1 6/7 regression. Consider test.C: ... void bar (__builtin_va_list &); struct c { operator const __builtin_va_list &(); operator __builtin_va_list &(); }; void foo (void) { struct c c1; bar (c1); } ... The compiler ICEs as follows: ... test.C: In f

Re: [PATCH, RFC] Introduce -fsanitize=use-after-scope

2016-09-03 Thread Jakub Jelinek
On Thu, May 12, 2016 at 04:12:21PM +0200, Martin Liška wrote: > > Dunno, guess you need to do something in the FE for it already (talk to > > Jason?). At least in *.original dump there is already: > > < > save ((const struct IntHolder &) &TARGET_EXPR ) >; > > int x = (int) saved->val;

Re: [Fortran, Patch, PR72832, v1] [6/7 Regression] [OOP] ALLOCATE with SOURCE fails to allocate requested dimensions

2016-09-03 Thread Dominique d'Humières
Hi Andre, The patch works as expected. As said on IRC, IMO the dejagnu directives in gfortran.dg/allocate_with_source_23.f03 +! { dg-do run { xfail *-*-* } } +! { dg-options "-fcheck=bounds" } should be replaced with +! { dg-do run } +! { dg-options "-fcheck=bounds" } +! { dg-shouldfail "Array

Re: [PATCH] Silence some uninitialized variable warnings that appear when bootstrapping

2016-09-03 Thread Eric Gallager
On 9/3/16, Manuel López-Ibáñez wrote: > On 3 September 2016 at 02:11, Eric Gallager wrote: >> On 9/2/16, Manuel López-Ibáñez wrote: >>> On 3 Sep 2016 12:56 a.m., "Eric Gallager" wrote: I tried that but it doesn't look like it produced any dumpfiles... >>> >>> I often use -fdump-tree-all-al

New Swedish PO file for 'gcc' (version 6.2.0)

2016-09-03 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the Swedish team of translators. The file is available at: http://translationproject.org/latest/gcc/sv.po (This file, 'gcc-6.2.0.sv.po', has just

Re: [PATCH] Silence some uninitialized variable warnings that appear when bootstrapping

2016-09-03 Thread Manuel López-Ibáñez
On 3 September 2016 at 02:11, Eric Gallager wrote: > On 9/2/16, Manuel López-Ibáñez wrote: >> On 3 Sep 2016 12:56 a.m., "Eric Gallager" wrote: >>> I tried that but it doesn't look like it produced any dumpfiles... >> >> I often use -fdump-tree-all-all-lineno >> > > > That produced a lot of files

[committed] Fix up gomp/_Atomic-4.c (PR c/65467)

2016-09-03 Thread Jakub Jelinek
Hi! On Fri, Sep 02, 2016 at 08:46:21PM +0200, Jakub Jelinek wrote: > * gcc.dg/gomp/_Atomic-4.c: New test. Andreas noted in the PR the test fails on targets other than x86_64/i686. That is because no other target yet provides the compute_vecsize_and_simdlen target hook (basically, backend ma

Re: [PATCH] Move class substring_loc from c-family into gcc

2016-09-03 Thread Manuel López-Ibáñez
On 02/09/16 23:55, Martin Sebor wrote: diff --git a/gcc/substring-locations.h b/gcc/substring-locations.h index f839c74..bb0de4f 100644 --- a/gcc/substring-locations.h +++ b/gcc/substring-locations.h @@ -20,6 +20,73 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_SUBSTRING_LOC