[llvm-bugs] [Bug 45731] New: __builtin_FUNCTION() inconsistent on path separator on Windows
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Wed Apr 29 05:21:09 PDT 2020
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=45731
            Bug ID: 45731
           Summary: __builtin_FUNCTION() inconsistent on path separator on
                    Windows
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xandan at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Given the following
src/main.cpp
src/header.h
And the following code:
//header.h
#include <iostream>
void test()
{
    std::cout << __builtin_FILE() << '\n';
}
=====
//main.cpp
#include "header.h"
int main()
{
    test();
    std::cout << __builtin_FILE() << '\n';
}
======
I get the following output
src/header.h
src\main.cpp
Discovered this when implementing srd::source_location for Microsoft here
https://github.com/microsoft/STL/pull/664#issuecomment-621063583
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200429/75310de0/attachment.html>
    
    
More information about the llvm-bugs
mailing list