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

            Bug ID: 65835
           Summary: bootstrap failure: multiple invalid conversions from
                    ‘const char*’ to ‘char*’ [-fpermissive] in winnt.c
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tprince at computer dot org

Created attachment 35380
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35380&action=edit
winnt.c from trunk

g++ -c   -g -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables
-
W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-
attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wn
o-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc
-I../../gc
c/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include 
-I../../gc
c/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/
../libbacktrace   -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include
-I./.
./intl -I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber
-I../../gcc/..
/libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace  \
../../gcc/config/i386/winnt-stubs.c
../../gcc/config/i386/winnt.c: In function ‘const char*
i386_find_on_wrapper_lis
t(const char*)’:
../../gcc/config/i386/winnt.c:804:32: error: invalid conversion from ‘const
char
*’ to ‘hash_table<wrapped_symbol_hasher>::value_type {aka char*}’
[-fpermissive]

   return wrappers->find (target);
                                ^
In file included from ../../gcc/hard-reg-set.h:23:0,
                 from ../../gcc/regs.h:24,
                 from ../../gcc/config/i386/winnt.c:26:
../../gcc/hash-table.h:623:15: note:   initializing argument 1 of
‘hash_table<De
scriptor, Allocator>::value_type& hash_table<Descriptor, Allocator>::find(const
value_type&) [with Descriptor = wrapped_symbol_hasher; Allocator = xcallocator;
hash_table<Descriptor, Allocator>::value_type = char*]’
   value_type &find (const value_type &value)
...
g++ -c   -g -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables
-
W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-
attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wn
o-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc
-I../../gc
c/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include 
-I../../gc
c/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/
../libbacktrace   -o hooks.o -MT hooks.o -MMD -MP -MF ./.deps/hooks.TPo
../../gc
c/hooks.c
../../gcc/config/i386/winnt.c: In function ‘void i386_pe_file_end()’:
../../gcc/config/i386/winnt.c:832:50: error: invalid conversion from ‘const
char
*’ to ‘char*’ [-fpermissive]
    char *realsym = i386_find_on_wrapper_list (p->name);
                                                  ^
../../gcc/config/i386/winnt.c:770:1: note:   initializing argument 1 of ‘char*
i
386_find_on_wrapper_list(char*)’
 i386_find_on_wrapper_list (char *target)
 ^

Reply via email to