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

S. Davis Herring <herring at lanl dot gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |herring at lanl dot gov

--- Comment #7 from S. Davis Herring <herring at lanl dot gov> ---
Created attachment 46233
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46233&action=edit
ICE output from variable template test

This simple test case produces a similar ICE (with current trunk at Compiler
Explorer):

  int i;
  template<auto> extern const int v=i++;

  void f();
  const int j=v<f>;

  int g() {
    void f();
    return v<f>;
  }

Making v have internal linkage makes it go away.  If this should be a separate
bug, please let me know.

Reply via email to