This triggers https://rules.sonarsource.com/cpp/RSPEC-3698 even though MyException clearly inherits from std::exception. As an aside, in our actual code, the similar exception inherits from std::runtime_error, which in turn inherits fro std::exception.
If I take away the template from func, and use MyClass<int>::MyException, then the false positive goes away, and resharper is telling me that the typename becomes redundant.
In the presented version, the typename is required, and clang fails to compile this code without it even though msvc does accept it. Meanwhile, it appears that Sonar is emitting the false positive regardless of whether the typename is present or not.
To investigate, can you enable S2260 and check if it triggers on your code? This rule is triggered when the analyzer fails to parse your code.
If S2260 doesn’t show something relevant, it might be related to the environment. Can you generate a reproducer file and share it? I can send you a private message if it contains sensitive information.