[Bug c++/92099] [9/10 Regression] static_assert of struct template of false_type succeed with GCC8 but not GCC9

2020-01-30 Thread sunxuanmailbox at 163 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92099 --- Comment #5 from 孙晅 --- (In reply to Jason Merrill from comment #4) > How is this type-dependent? id is value-dependent, but not type-dependent: > it has type E. This seems like a valid (though optional) diagnostic. But since id is a templa

[Bug c++/92099] [9/10 Regression] static_assert of struct template of false_type succeed with GCC8 but not GCC9

2019-10-15 Thread sunxuanmailbox at 163 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92099 --- Comment #1 from 孙晅 --- Also tried with gcc 10.0.0 201901015 (experimental) and failed to compile.

[Bug c++/92099] New: static_assert of struct template of false_type succeed with GCC8 but not GCC9

2019-10-14 Thread sunxuanmailbox at 163 dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sunxuanmailbox at 163 dot com Target Milestone: --- I'm using a type-dependent struct to enable static_assert inside contexpr if. The following code compiles fine with