Analyzer does not report an error when new
is used in a non-constructor position with constructor tearoffs enabled
#47077
Labels
With constructor tearoffs enabled, the analyzer correctly emits an error on the definition of the field in
C
in the code below, but issues no errors on the access ofnew
on an instance ofC
and onfoo
inmain
. I believe that all of those should be an error. This should cause a failure inco19/Language/Expressions/Instance_Creation/New/type_t05
(source here) when constructor tearoffs are enabled. See logs here but note that the analyzer run failed with an infrastructure issue . CL turning on the flag is here.cc @eernstg @lrhn @srawlins @scheglov @devoncarew
The text was updated successfully, but these errors were encountered: