Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 2797

Compiler bug in tuple conversion

$
0
0

Getting compile error for the following code segment on ICL 16.0.3.207. The code compiles fine on Visual Studio, GCC and clang.

#include <tuple>

void foobar()
  {
    struct A;
    A* a = nullptr;
    std::tuple<const A&> t {std::tie(*a)};
  }

The problem seems to be triggered by incomplete types.

Thread Topic: 

Bug Report

Viewing all articles
Browse latest Browse all 2797


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>