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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-06-04
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.

With -Wreturn-type, started with r253600.  Before:

90747.C: In instantiation of ‘decltype (e<int>((* f))) e(b<d>) [with
<template-parameter-1-1> = a; d = int; decltype (e<int>((* f))) = int]’:
90747.C:5:28:   required from here
90747.C:4:73: warning: no return statement in function returning non-void
[-Wreturn-type]
 template <typename, typename d> auto e(b<d> f) -> decltype(e<int>(*f)) {}
                                                                         ^

Reply via email to