BIND 10 #2009: const uint8_t {aka const unsigned char}' inside { } is ill-formed in C++11

BIND 10 Development do-not-reply at isc.org
Tue May 29 15:09:29 UTC 2012


#2009: const uint8_t {aka const unsigned char}' inside { } is ill-formed in C++11
-------------------------------------+-------------------------------------
            Reporter:  jreed         |                        Owner:
                Type:  defect        |                       Status:  new
            Priority:  medium        |                    Milestone:  New
           Component:  Unclassified  |  Tasks
           Sensitive:  0             |                     Keywords:
         Sub-Project:  DNS           |              Defect Severity:  N/A
Estimated Difficulty:  0             |  Feature Depending on Ticket:
         Total Hours:  0             |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 From
 http://git.bind10.isc.org/~tester/builder/BIND10-lettuce/20120529132750
 -DebianLinux-x86_64-GCC/logs/build.out

 {{{
 make[5]: Entering directory
 `/home/jreed/builder/work/BIND10-lettuce/20120529132750-DebianLinux-
 x86_64-GCC/build/src/lib/xfr'
 /bin/bash ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
 -I. -I../../..  -I../../../src/lib -I../../../src/lib
 -I../../../src/lib/dns -I../../../src/lib/dns  -DOS_LINUX
 -I../../../ext/asio -I../../../ext/coroutine -DASIO_DISABLE_THREADS=1
 -Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
 -Werror -fPIC -Wno-unused-parameter  -g -O2 -MT xfrout_client.lo -MD -MP
 -MF .deps/xfrout_client.Tpo -c -o xfrout_client.lo xfrout_client.cc
 libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib
 -I../../../src/lib -I../../../src/lib/dns -I../../../src/lib/dns
 -DOS_LINUX -I../../../ext/asio -I../../../ext/coroutine
 -DASIO_DISABLE_THREADS=1 -Wall -Wextra -Wwrite-strings -Woverloaded-
 virtual -Wno-sign-compare -Werror -fPIC -Wno-unused-parameter -g -O2 -MT
 xfrout_client.lo -MD -MP -MF .deps/xfrout_client.Tpo -c xfrout_client.cc
 -fPIC -DPIC -o .libs/xfrout_client.o
 xfrout_client.cc: In member function 'virtual int
 isc::xfr::XfroutClient::sendXfroutRequestInfo(int, const void*,
 uint16_t)':
 xfrout_client.cc:86:62: error: narrowing conversion of '(((int)msg_len) >>
 8)' from 'int' to 'const uint8_t {aka const unsigned char}' inside { } is
 ill-formed in C++11 [-Werror=narrowing]
 xfrout_client.cc:86:62: error: narrowing conversion of '(((int)msg_len) &
 255)' from 'int' to 'const uint8_t {aka const unsigned char}' inside { }
 is ill-formed in C++11 [-Werror=narrowing]
 cc1plus: all warnings being treated as errors
 make[5]: *** [xfrout_client.lo] Error 1
 make[5]: Leaving directory
 `/home/jreed/builder/work/BIND10-lettuce/20120529132750-DebianLinux-
 x86_64-GCC/build/src/lib/xfr'
 }}}

 This Debian wheezy/sid box was upgraded. (wheezy is testing and will
 become next release; sid is unstable and is new packages in development.)

 {{{
 jreed at debian-sid-64-4:~$ ls -l `which g++`
 lrwxrwxrwx 1 root root 7 May  7 10:56 /usr/bin/g++ -> g++-4.7
 jreed at debian-sid-64-4:~$ g++ --version
 g++ (Debian 4.7.0-9) 4.7.0
 Copyright (C) 2012 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/2009>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list