{"action":"opened","issue":{"url":"https://api.github.com/repos/opencv/opencv/issues/7387","repository_url":"https://api.github.com/repos/opencv/opencv","labels_url":"https://api.github.com/repos/opencv/opencv/issues/7387/labels{/name}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/7387/comments","events_url":"https://api.github.com/repos/opencv/opencv/issues/7387/events","html_url":"https://github.com/opencv/opencv/issues/7387","id":180574888,"number":7387,"title":"Commit a34fbf7 breaks compilation","user":{"login":"jasjuang","id":11759200,"avatar_url":"https://avatars.githubusercontent.com/u/11759200?v=3","gravatar_id":"","url":"https://api.github.com/users/jasjuang","html_url":"https://github.com/jasjuang","followers_url":"https://api.github.com/users/jasjuang/followers","following_url":"https://api.github.com/users/jasjuang/following{/other_user}","gists_url":"https://api.github.com/users/jasjuang/gists{/gist_id}","starred_url":"https://api.github.com/users/jasjuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasjuang/subscriptions","organizations_url":"https://api.github.com/users/jasjuang/orgs","repos_url":"https://api.github.com/users/jasjuang/repos","events_url":"https://api.github.com/users/jasjuang/events{/privacy}","received_events_url":"https://api.github.com/users/jasjuang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-03T07:04:20Z","updated_at":"2016-10-03T07:04:20Z","closed_at":null,"body":"##### System information (version)\r\n- OpenCV => Latest\r\n- Operating System / Platform => Ubuntu 16.04\r\n- Compiler => gcc 5.4\r\nI am also on CUDA 8.\r\n\r\n##### Detailed description\r\n\r\nIf I compile the latest code I will get compilation error as shown below\r\n\r\n``````\r\n[ 44%] Building NVCC (Device) object modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_clahe.cu.o\r\n/home/jasjuang/opencv/modules/core/include/opencv2/core/cuda/reduce.hpp(61): error: name followed by \"::\" must be a class or namespace name\r\n\r\n/home/jasjuang/opencv/modules/core/include/opencv2/core/cuda/reduce.hpp(61): error: name followed by \"::\" must be a class or namespace name\r\n\r\n/home/jasjuang/opencv/modules/core/include/opencv2/core/cuda/reduce.hpp(61): error: expected an identifier\r\n\r\n/home/jasjuang/opencv/modules/core/include/opencv2/core/cuda/reduce.hpp(61): error: expected a \";\"\r\n\r\n4 errors detected in the compilation of \"/tmp/tmpxft_0000464c_00000000-15_clahe.compute_60.cpp1.ii\".\r\nCMake Error at cuda_compile_generated_clahe.cu.o.cmake:264 (message):\r\n  Error generating file\r\n  /home/jasjuang/opencv/build/modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_clahe.cu.o\r\n\r\n\r\nmodules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/build.make:1112: recipe for target 'modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_clahe.cu.o' failed\r\nmake[2]: *** [modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_clahe.cu.o] Error 1\r\nCMakeFiles/Makefile2:6060: recipe for target 'modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/all' failed\r\nmake[1]: *** [modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/all] Error 2\r\nMakefile:160: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n``````\r\n\r\nIf I do a `git checkout 6328076`, everything compiles as usual."}}
{"actor":{"display_login":"jasjuang"}}