[Bug c++/110330] New: GCC does not diagnose ambiguous function introduced from base class

2023-06-20 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- The following code struct Foo{}; struct Bar{}; struct Base { Foo func1(const Foo , const Bar = Bar{}) const { return

[Bug c++/110300] New: Template disambiguator accepted for non-template function

2023-06-18 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- template struct Bar{ void setNumber(int) {} }; template struct Asd : public Bar>{ void doSomething(); }; template inline v

[Bug c++/104160] Wrongly allowed: Function argumentin constant expression

2022-06-22 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104160 Csaba Ráduly changed: What|Removed |Added CC||csaba_22 at yahoo dot co.uk --- Comment

[Bug c++/105752] Template function can access private member

2022-06-02 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105752 --- Comment #5 from Csaba Ráduly --- The fact that GCC 11 shows an error for the code in comment #4 suggests that this was a bug which was fixed. Does it ring a bell to anyone? This bug should probably marked as a duplicate, but of which other b

[Bug c++/105752] Template function can access private member

2022-05-30 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105752 --- Comment #4 from Csaba Ráduly --- Looks like there *was* a bug, I just wasn't able to properly reproduce it initially: #include #include class CB { struct DCB {}; }; struct NMC1 : public CB { int meow() const { return __LINE__

[Bug c++/105752] New: Template function can access private member

2022-05-27 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- The following code class Outer { private: // ! struct Inner {}; }; template struct Meow { void purr() { Outer::Inner oi; } }; int main

[Bug c++/99650] ICE when trying to form reference to void in structured binding

2021-03-18 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99650 --- Comment #4 from Csaba Ráduly --- Is this a dup of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79372 ? https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg522821.html

[Bug c++/99650] New: ICE when trying to form reference to void in structured binding

2021-03-18 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- Created attachment 50423 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50423&action=edit gzipped preprocessor outp

[Bug c++/89151] SFINAE-disabled member hides another

2019-02-28 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151 --- Comment #5 from Csaba Ráduly --- Appears to be fixed in GCC 8.3.0

[Bug libstdc++/89090] vector.tcc uses "if constexpr" in C++11 mode

2019-02-08 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89090 --- Comment #7 from Csaba Ráduly --- Don't be sad, use -std=c++17 :)

[Bug c++/89151] SFINAE-disabled member hides another

2019-02-08 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151 --- Comment #4 from Csaba Ráduly --- As I said, GCC trunk (9) can compile this example. Did you check with the released 8.2.0 ?

[Bug libstdc++/89090] vector.tcc uses "if constexpr" in C++11 mode

2019-02-05 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89090 --- Comment #4 from Csaba Ráduly --- svn blame vector.tcc claims that the inner, apparently redundant "#if __cplusplus >= 201103L" appeared at this change: r265485 | glisse | 2018-10-25 15:03:13 +0200 (Thu, 25 Oct 2018) | 24 lines Relocation (=

[Bug c++/89151] SFINAE-disabled member hides another

2019-02-01 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151 --- Comment #2 from Csaba Ráduly --- Commenting out the non-optional operator GetWhat makes GCC 8.2.0 compile the example as written. However, that operator is needed if struct R is changed to struct R { boost::optional password;

[Bug c++/89151] SFINAE-disabled member hides another

2019-02-01 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151 --- Comment #1 from Csaba Ráduly --- Created attachment 45585 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45585&action=edit preprocessor output from -save-temps

[Bug c++/89151] New: SFINAE-disabled member hides another

2019-02-01 Thread csaba_22 at yahoo dot co.uk
++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- The following program is compiled successfully by clang-4.0, clang-6.0, clang-trunk, GCC 7.3 (Ubuntu 7.3.0-27ubuntu1~18.04) and GCC trunk. &g

[Bug libstdc++/89090] vector.tcc uses "if constexpr" in C++11 mode

2019-01-29 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89090 --- Comment #2 from Csaba Ráduly --- > Are you actually seeing a problem because of this? Not as such. What I did was to generate the pre-processed output, replace #s with // (so the line numbers are the raw ones for the raw preprocessed file) a

[Bug libstdc++/89090] New: vector.tcc uses "if constexpr" in C++11 mode

2019-01-28 Thread csaba_22 at yahoo dot co.uk
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- vector.tcc contains the following at line 613 #if __cplusplus >= 201103L template void vector<_Tp, _Alloc>:: _M_default_append(size_type

[Bug c++/88263] ICE in coverage_begin_function

2019-01-21 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88263 --- Comment #9 from Csaba Ráduly --- Confirmed. The original logger.cc (from which logger2.cc was derived) is now compiled successfully.

[Bug c++/88263] ICE in coverage_begin_function

2019-01-07 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88263 --- Comment #5 from Csaba Ráduly --- Created attachment 45367 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45367&action=edit preprocessor output from -save-temps for the second version (with destructor)

[Bug c++/88263] ICE in coverage_begin_function

2019-01-07 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88263 Csaba Ráduly changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/88263] New: ICE in coverage_begin_function

2018-11-29 Thread csaba_22 at yahoo dot co.uk
++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- Created attachment 45122 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45122&action=edit preprocessor output from -save-temps $ cat ../logger/src/logger2.cc #include namesp

[Bug libstdc++/86513] ostringstream default constructor missing from libstdc++

2018-07-17 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86513 --- Comment #5 from Csaba Ráduly --- BTW, I wasn't building in the source directory.

[Bug libstdc++/86513] ostringstream default constructor missing from libstdc++

2018-07-16 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86513 --- Comment #3 from Csaba Ráduly --- I don't get this. ostringstream isn't even supposed to have a default constructor, only the openmode, string and openmode, and the move constructor (if I'm reading [ostringstream.cons] in N4659 right). In the

[Bug libstdc++/86513] ostringstream default constructor missing from libstdc++

2018-07-16 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86513 --- Comment #2 from Csaba Ráduly --- I don't get this. ostringstream isn't even supposed to have a default constructor, only the openmode, string and openmode, and the move constructor (if I'm reading [ostringstream.cons] in N4659 right).

[Bug libstdc++/86513] New: ostringstream default constructor missing from libstdc++

2018-07-13 Thread csaba_22 at yahoo dot co.uk
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- $ svn info ../trunk/ Path: ~/wk/GCC99/trunk Working Copy Root Path: ~/wk/GCC99/trunk URL: https://gcc.gnu.org/svn/gcc/trunk Relative URL

[Bug c++/86342] Wdeprecated-copy in a header included from system directory

2018-06-28 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86342 --- Comment #1 from Csaba Ráduly --- See also https://gcc.gnu.org/ml/gcc/2018-06/msg00274.html

[Bug c++/86342] New: Wdeprecated-copy in a header included from system directory

2018-06-28 Thread csaba_22 at yahoo dot co.uk
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- Created attachment 44332 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44332&action=edit preprocessor output from -save-temps #

[Bug c++/83988] New: Internal compiler error in tsubst_baselink

2018-01-23 Thread csaba_22 at yahoo dot co.uk
++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- Created attachment 43214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43214&action=edit preprocessed source, compressed $ g++-8 -v -Wall -pedantic -Wextra -g -sav

[Bug sanitizer/78755] Thread sanitizer reports race with std::promise with -O0, works with -O{1,2,3}

2016-12-09 Thread csaba_22 at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78755 --- Comment #1 from Csaba Ráduly --- Created attachment 40291 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40291&action=edit Preprocessed source

[Bug sanitizer/78755] New: Thread sanitizer reports race with std::promise with -O0, works with -O{1,2,3}

2016-12-09 Thread csaba_22 at yahoo dot co.uk
: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot

[Bug c++/77564] New: Code fails to link when compiled with -O0

2016-09-12 Thread csaba_22 at yahoo dot co.uk
++ Assignee: unassigned at gcc dot gnu.org Reporter: csaba_22 at yahoo dot co.uk Target Milestone: --- The following code fails to link when compiled with -O0. It links when compiled with -O1 or higher, or -Og: template class du { R r; public: constexpr du() = default

[Bug c++/60498] error: 'snprintf' was not declared in this scope

2014-03-16 Thread csaba_22 at yahoo dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498 --- Comment #12 from Csaba Ráduly --- Doh. Disregard me. $ g++ -std=c++11 -E -dM -x c++ /dev/null | egrep -i 'ansi|std|plus' #define __STDC_HOSTED__ 1 #define __STRICT_ANSI__ 1 #define __cplusplus 201103L #define __stdcall __attribute__((__stdcal

[Bug c++/60498] error: 'snprintf' was not declared in this scope

2014-03-16 Thread csaba_22 at yahoo dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498 Csaba Ráduly changed: What|Removed |Added CC||csaba_22 at yahoo dot co.uk --- Comment

[Bug c++/54194] New: GCC 4.8 gives misleading suggestion about arithmetic in operand of '|'

2012-08-07 Thread csaba_22 at yahoo dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54194 Bug #: 54194 Summary: GCC 4.8 gives misleading suggestion about arithmetic in operand of '|' Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIR