public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/108698] New: [13 Regression] decltype ((T() + ‘excess_precision_expr’ not supported by dump_expr<expression error>)) median(ndarray<T>) [with T = double]’: since  r13-3290-g98e341130f87984a
@ 2023-02-07 14:09 marxin at gcc dot gnu.org
  2023-02-07 14:09 ` [Bug tree-optimization/108698] " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-02-07 14:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108698

            Bug ID: 108698
           Summary: [13 Regression] decltype ((T() +
                    ‘excess_precision_expr’ not supported by
                    dump_expr<expression error>)) median(ndarray<T>) [with
                    T = double]’: since  r13-3290-g98e341130f87984a
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux-gnu

The following is isolated from python-scipy package:

$ cat scipy.ii
template <class> struct ndarray {};
template <class T> decltype(T() + 1.) median(ndarray<T>);
struct Trans_NS_functor_median {
  template <typename... Types> void operator()(Types...) { median(Types()...);
}
};
struct siegelslopes {
  void operator()(siegelslopes, double, void()) {
    ndarray<double> __trans_tmp_9;
    Trans_NS_functor_median{}(__trans_tmp_9);
  }
} siegelslopes0_y;
double siegelslopes0_x;
void siegelslopes0_method() {
  siegelslopes()(siegelslopes0_y, siegelslopes0_x, siegelslopes0_method);
}

$ g++ scipy.ii -c -m32 -std=c++14
scipy.ii: In instantiation of ‘decltype ((T() + ‘excess_precision_expr’ not
supported by dump_expr<expression error>)) median(ndarray<T>) [with T =
double]’:
scipy.ii:2:39: sorry, unimplemented: mangling excess_precision_expr
    2 | template <class T> decltype(T() + 1.) median(ndarray<T>);
      |                                       ^~~~~~

$ g++-12 scipy.ii -c -m32 -std=c++14

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-09  8:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-07 14:09 [Bug tree-optimization/108698] New: [13 Regression] decltype ((T() + ‘excess_precision_expr’ not supported by dump_expr<expression error>)) median(ndarray<T>) [with T = double]’: since r13-3290-g98e341130f87984a marxin at gcc dot gnu.org
2023-02-07 14:09 ` [Bug tree-optimization/108698] " marxin at gcc dot gnu.org
2023-02-07 16:33 ` [Bug c++/108698] " jakub at gcc dot gnu.org
2023-02-07 19:38 ` jakub at gcc dot gnu.org
2023-02-07 19:38 ` jakub at gcc dot gnu.org
2023-02-09  8:32 ` cvs-commit at gcc dot gnu.org
2023-02-09  8:34 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).