This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77625] New: go/gofrontend/ast-dump.cc:169:42: error: ‘new’ of type ‘std::ofstr eam {aka std::basic_ofstream<char>}’ with extended alignment 16


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77625

            Bug ID: 77625
           Summary: go/gofrontend/ast-dump.cc:169:42: error: ‘new’ of type
                    ‘std::ofstr eam {aka std::basic_ofstream<char>}’ with
                    extended alignment 16
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

/home/dave/gnu/gcc/objdir/./prev-gcc/xg++
-B/home/dave/gnu/gcc/objdir/./prev-gcc/
-B/home/dave/opt/gnu/gcc/gcc-7/hppa-linux-gnu/bin/ -nostdinc++ -B/home/dave/gn
u/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-B/home/dave/gnu/gcc/obj
dir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs 
-I/home/dave/gnu/gcc/objdi
r/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu 
-I/home/dave/gnu/gcc/
objdir/prev-hppa-linux-gnu/libstdc++-v3/include 
-I/home/dave/gnu/gcc/gcc/libstd
c++-v3/libsupc++
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC     -fno-exceptions -fno-rtt
i -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qu
al -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long
-Wno
-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H
-I
. -Igo -I../../gcc/gcc -I../../gcc/gcc/go -I../../gcc/gcc/../include
-I../../gcc
/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libde
cnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o
go/ast-dump.o
 -MT go/ast-dump.o -MMD -MP -MF go/.deps/ast-dump.TPo -I ../../gcc/gcc/go -I
../
../gcc/gcc/go/gofrontend ../../gcc/gcc/go/gofrontend/ast-dump.cc
../../gcc/gcc/go/gofrontend/ast-dump.cc: In member function ‘void
Ast_dump_context::dump(Gogo*, const char*)’:
../../gcc/gcc/go/gofrontend/ast-dump.cc:169:42: error: ‘new’ of type
‘std::ofstream {aka std::basic_ofstream<char>}’ with extended alignment 16
[-Werror=aligned-new=]
   std::ofstream* out = new std::ofstream();
                                          ^
../../gcc/gcc/go/gofrontend/ast-dump.cc:169:42: note: uses ‘void* operator
new(std::size_t)’, which does not have an alignment parameter
../../gcc/gcc/go/gofrontend/ast-dump.cc:169:42: note: use ‘-faligned-new’ to
enable C++17 over-aligned new support
cc1plus: all warnings being treated as errors
../../gcc/gcc/go/Make-lang.in:232: recipe for target 'go/ast-dump.o' failed
make[3]: *** [go/ast-dump.o] Error 1

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]