[Bug c++/99611] New: Code compilation issue using templates

2021-03-15 Thread asif_bahrainwala at hotmail dot com via Gcc-bugs
++ 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

[Bug c++/86730] use of deleted copy constructor (I am not using it)

2018-07-31 Thread asif_bahrainwala at hotmail dot com
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

[Bug c++/86730] New: use of deleted copy constructor (I am not using it)

2018-07-30 Thread asif_bahrainwala at hotmail dot com
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

[Bug preprocessor/83449] incorrect ## preprocessing with string

2017-12-17 Thread asif_bahrainwala at hotmail dot com
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

[Bug preprocessor/83449] New: incorrect ## preprocessing with string

2017-12-17 Thread asif_bahrainwala at hotmail dot com
: 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

[Bug c++/81282] New: templated Lambda ,auto

2017-07-02 Thread asif_bahrainwala at hotmail dot com
: 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