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

            Bug ID: 78369
           Summary: default parameter ICEs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guille at cal dot berkeley.edu
  Target Milestone: ---

The following short program ICEs in c++ '7.0.0 20161106' (ICE goes away if we
eliminate the default-initialized parameter):

#include <string>
#include <ctime>

inline void f(struct tm time_tm = {})
{}

int main()
{
    f();
    return 0;
}

Reply via email to