[Bug c++/29956] New: Violation of ISO C++ "4.4 Qualification conversions"

sgaltsev at cbossgroup dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 23 14:09:00 GMT 2006


g++ -v:
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls--disable-libgcj --enable-languages=c,c+
: (reconfigured) ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.2

g++ 1.cpp -o 1:
1.cpp: In function `int main()':
1.cpp:6: error: invalid operands of types `const int* const* const' and `int*
const* const' to binary `operator-'

Expected behaviour: errorless compilation, since the programm follows
ISO C++ "4.4 Qualification conversions".


-- 
           Summary: Violation of ISO C++ "4.4 Qualification conversions"
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sgaltsev at cbossgroup dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29956



More information about the Gcc-bugs mailing list