++
Assignee: unassigned at gcc dot gnu.org
Reporter: asif_bahrainwala at hotmail dot com
Target Milestone: ---
Hi,
a minimalist re-pro is available at
https://stackoverflow.com/questions/66641646/c-code-compilation-usage-of-fstream-ostream
The below code compiles in Clang but not in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86730
--- Comment #2 from Asif ---
Hi,
thanks for the quick update, I will consider this issue resolved.
"if a converting constructor was used, is then used to direct-initialize the
object" (I am using this in my code, thought that this was getting a
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: asif_bahrainwala at hotmail dot com
Target Milestone: ---
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
//Below code does not compile, I am not using the copy constructor, it seems to
work fine in Vs2013, CLANG (experimental
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83449
--- Comment #1 from Asif ---
g++ main.cpp
main.cpp:10:15: error: pasting ""a"" and ""b"" does not give a valid
preprocessing token
char *i=A("a","b");
^
main.cpp:6:16: note: in definition of macro ‘A’
#define A(a,b) a ## b
: preprocessor
Assignee: unassigned at gcc dot gnu.org
Reporter: asif_bahrainwala at hotmail dot com
Target Milestone: ---
g++ --version
g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions
: unassigned at gcc dot gnu.org
Reporter: asif_bahrainwala at hotmail dot com
Target Milestone: ---
Compilation issues, might be similar to 67838
#include
#include
#include
#include
using namespace std;
template
auto a1=[](T1 y1)->T1{
return y1;
};
int main()
{
cout