This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This code causes an internal compiler error on visual studio 15.5 preview 2's version of MSVC | |
#include <math.h> | |
#include <utility> | |
struct Vector3 final | |
{ | |
float x, y, z; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this code causes an internal compiler error in Visual Studio 2017. | |
//in 15.5 and 15.6 the ICE occurs in 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\parsetree.cpp' on line 1692. | |
//in the MSVC dailies (19.13.26014.0 used for this test), | |
//the ICE occurs in 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\parsetree.cpp' on line 1711. | |
#include <string> | |
#include <sstream> | |
#include <iostream> | |
#include <utility> | |
template <class CHAR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compiled in x64, Release with: | |
// /std:c++latest /permissive- /arch:AVX2 /fp:except- /Qpar- /GF /GS- /O2 /Ot /fp:fast /Oy /openmp- /GL | |
// bug encountered using visual studio 2017 15.9.4 (_MSC_FULL_VER: 191627025) | |
#include <string_view> | |
#include <array> | |
#include <cstdint> | |
using namespace std::literals; | |
constexpr auto operator"" _u8(unsigned long long n) noexcept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// godbolt: https://godbolt.org/z/AfIXAD | |
#include <iostream> | |
#define MSVC_BUG 1 | |
struct A | |
{ | |
static constexpr int flag = 1; | |
}; | |
struct B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//godbolt: https://godbolt.org/z/6Ffp3J | |
#include <cstdint> | |
#include <utility> | |
using namespace std; | |
template <typename T, size_t N> | |
class Test | |
{ | |
private: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//compiled using VS 2019 latest, v141 toolset | |
//flags: /fp:fast /O2 /permissive- /std:c++latest /utf-8 /volatile:iso /Zc:__cplusplus /bigobj /Zc:inline /Zc:throwingNew /Gm- /Ot /arch:AVX2 /Gd /Oy /Oi /GS- /Qpar- | |
#include <cstdint> | |
#include <cstddef> | |
#include <cmath> | |
#include <array> | |
#define ACH_ALWAYS_INLINE __forceinline //changing this to __declspec(noinline) 'fixes' the issue | |
#define ACH_ASSUME(cond) __assume(cond) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//_MSC_VER: 1923 | |
//_MSC_FULL_VER: 192328107 | |
//Toolset: v142 | |
//Visual studio: 2019 16.3.10 | |
//compiler flags: /std:c++latest /permissive- | |
#include <string_view> | |
[[deprecated]] | |
constexpr std::string_view Test(const char* str, size_t len) noexcept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
//-------------------------------------------------------------------- | |
// CONFIGURATION | |
//-------------------------------------------------------------------- | |
#ifdef TOML_CONFIG_HEADER | |
#include TOML_CONFIG_HEADER | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# dependencies: | |
# pip install --upgrade requests | |
import os.path | |
import sys | |
import re | |
import requests | |
import traceback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example of forward-declaring std types. | |
// *** don't use this! it's for exposition only! *** | |
#pragma once | |
#ifdef __has_include | |
#define STDFWD_HAS_INCLUDE(header) __has_include(header) | |
#else | |
#define STDFWD_HAS_INCLUDE(header) 0 | |
#endif |
OlderNewer