Created attachment 19363 [details] Reproducer Steps to reproduce: 1) Compile the `bug.cpp` with `clang++ -Wdocumentation -c bug.cpp` using Clang 5.0 2) Comment out line 7, and recompile as in step 1. Expected results: No warning should be emitted for either of the two steps above. Actual results: The following warning is emitted at step 1, but not step 2: bug.cpp:2:5: warning: '\tparam' command used in a comment that is not attached to a template declaration [-Wdocumentation] * \tparam T The type of the inputs' elements. ^~~~~~ 1 warning generated.
Hi there. This bug still affects me with Clang 11.