compiling cuda with gcc failed at option -Wimplicit-fallthrough=3 · Issue #11552 · opencv/opencv

I compile the latest OpenCV on ubuntu 18.04 with cuda 9.1 and gcc-6 as CUDA_HOST_COMPILER, gcc-7 as CMAKE_CXX_COMPILER. but always fails at compiling cuda. The error message is gcc-6: error: unreco...