[LLVMbugs] [Bug 13593] Assertion in getRawCommentForDeclNoCache with template, comment, excluded code and -Weverything

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 13 10:21:50 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13593

jonathan.sauer at gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #5 from jonathan.sauer at gmx.de 2012-08-13 12:21:50 CDT ---
The two cases I reported are fixed. Thank you for your quick response, Douglas!

Unfortunately, the following still results in the same assertion in clang
r161762:

/**
 * Calculates the determinant of a 3x3 matrix.
 *
 * \note    Adapted from FCollada's \c FMMatrix44.cpp
 */
template <typename T>
inline T det3x3(T a1)
{
    return a1;
}

////////////
//MARK: -
//MARK: Matrix<float, 4, 4>

inline void invert()
{
    det3x3(1);
}


% ~/LLVM/build/Release+Asserts/bin/clang++ -c -Weverything clang.cpp 
Assertion failed: (DeclOrParsedComment.isNull()), function setDecl, file
/Users/rynnsauer/LLVM/llvm/tools/clang/lib/AST/../../include/clang/AST/RawCommentList.h,
line 66.

Without -Weverything, the Doxygen comment for det3x3 or the second "//MARK"
line, the code compiles successfully.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list