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

             Bug #: 54484
           Summary: r190927 breaks bootstrap with clang compiler
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: howa...@nitro.med.uc.edu


r190927 | dnovillo | 2012-09-04 09:22:54 -0400 (Tue, 04 Sep 2012) | 97 lines

Make all VEC_* functions, member functions of vec_t.
,,,

breaks the bootstrap of gcc trunk using the clang++ compiler. The failures are
of the form...

# clang++ -c   -g -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8-20120904/gcc
-I../../gcc-4.8-20120904/gcc/build -I../../gcc-4.8-20120904/gcc/../include
-I../../gcc-4.8-20120904/gcc/../libcpp/include -I/sw/include -I/sw/include 
-I../../gcc-4.8-20120904/gcc/../libdecnumber
-I../../gcc-4.8-20120904/gcc/../libdecnumber/dpd -I../libdecnumber
-DCLOOG_INT_GMP -I/sw/include -I/sw/include -I/sw/include \
        -o build/print-rtl.o ../../gcc-4.8-20120904/gcc/print-rtl.c? -o
build/print-rtl.o ../../gcc-4.8-20120904/gcc/print-rtl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
In file included from ../../gcc-4.8-20120904/gcc/print-rtl.c:33:
In file included from ../../gcc-4.8-20120904/gcc/rtl.h:29:
../../gcc-4.8-20120904/gcc/vec.h:619:42: error: default arguments cannot be
added to an out-of-line definition of a member of a class template
vec_t<T>::embedded_init (int nelems, int active = 0)
                                         ^        ~
../../gcc-4.8-20120904/gcc/vec.h:1078:17: warning: unused parameter 'lessthan_'
[-Wunused-parameter]
                       bool (*lessthan_)(const T *, const T *)) const
                              ^
1 warning and 1 error generated.

# clang++ -c   -g -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8-20120904/gcc
-I../../gcc-4.8-20120904/gcc/build -I../../gcc-4.8-20120904/gcc/../include
-I../../gcc-4.8-20120904/gcc/../libcpp/include -I/sw/include -I/sw/include 
-I../../gcc-4.8-20120904/gcc/../libdecnumber
-I../../gcc-4.8-20120904/gcc/../libdecnumber/dpd -I../libdecnumber
-DCLOOG_INT_GMP -I/sw/include -I/sw/include -I/sw/include \
        -o build/gensupport.o ../../gcc-4.8-20120904/gcc/gensupport.c? -o
build/gensupport.o ../../gcc-4.8-20120904/gcc/gensupport.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
In file included from ../../gcc-4.8-20120904/gcc/gensupport.c:25:
In file included from ../../gcc-4.8-20120904/gcc/rtl.h:29:
../../gcc-4.8-20120904/gcc/vec.h:619:42: error: default arguments cannot be
added to an out-of-line definition of a member of a class template
vec_t<T>::embedded_init (int nelems, int active = 0)
                                         ^        ~
../../gcc-4.8-20120904/gcc/vec.h:1078:17: warning: unused parameter 'lessthan_'
[-Wunused-parameter]
                       bool (*lessthan_)(const T *, const T *)) const
                              ^
1 warning and 1 error generated.

# clang++  -c   -g -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8-20120904/gcc
-I../../gcc-4.8-20120904/gcc/build -I../../gcc-4.8-20120904/gcc/../include
-I../../gcc-4.8-20120904/gcc/../libcpp/include -I/sw/include -I/sw/include 
-I../../gcc-4.8-20120904/gcc/../libdecnumber
-I../../gcc-4.8-20120904/gcc/../libdecnumber/dpd -I../libdecnumber
-DCLOOG_INT_GMP -I/sw/include -I/sw/include -I/sw/include \
        -o build/read-rtl.o ../../gcc-4.8-20120904/gcc/read-rtl.c? -o
build/read-rtl.o ../../gcc-4.8-20120904/gcc/read-rtl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
In file included from ../../gcc-4.8-20120904/gcc/read-rtl.c:30:
In file included from ../../gcc-4.8-20120904/gcc/rtl.h:29:
../../gcc-4.8-20120904/gcc/vec.h:619:42: error: default arguments cannot be
added to an out-of-line definition of a member of a class template
vec_t<T>::embedded_init (int nelems, int active = 0)
                                         ^        ~
../../gcc-4.8-20120904/gcc/vec.h:1078:17: warning: unused parameter 'lessthan_'
[-Wunused-parameter]
                       bool (*lessthan_)(const T *, const T *)) const
                              ^
1 warning and 1 error generated.

Reply via email to