Skip to content

Pattern match checker runs even when not needed

I have code that triggers pattern match checker warning:

Pattern match checker exceeded (2000000) iterations in
a case alternative. (Use -fmax-pmcheck-iterations=n
to set the maximun number of iterations to n)

I would like to silence that warning. Alas, -Wno-incomplete-patterns does nothing - the warning still appears. I would expect that if I do not want to check for incomplete patterns then pattern match checker is not run at all and thus does not exceed maximum number of iterations! I can only use -w to silence all the warnings but this is an overkill - definitely not what I want.

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information