[Bug c++/95132] New: Concept checked after auto return type deduction

2020-05-14 Thread bluescarni at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bluescarni at gmail dot com Target Milestone: --- It seems like in GCC's implementation of C++20 concepts, concept checking is done after the instantiation of the body of a function with auto return type deduction.

[Bug c++/94716] New: Address of constexpr variable not usable in constant expression

2020-04-22 Thread bluescarni at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bluescarni at gmail dot com Target Milestone: --- The following code does not compile in GCC trunk: - template inline constexpr char test_impl = 0; template inline constexpr auto

[Bug c++/78925] Inline friend template function not hidden during ADL

2016-12-24 Thread bluescarni at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78925 --- Comment #1 from Francesco Biscani --- Commenting either call to bar() leads to successful compilation.

[Bug c++/78925] New: Inline friend template function not hidden during ADL

2016-12-24 Thread bluescarni at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bluescarni at gmail dot com Target Milestone: --- Consider the code: -- namespace ns { template struct foo { template friend void bar(U) {} }; } int main() { ns::foo f_int

[Bug libstdc++/58030] Mismatched tags in std::hash friends

2013-07-30 Thread bluescarni at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58030 --- Comment #3 from Francesco Biscani --- Sorry, I did search for "mismatched tags" but it seemed like nothing came up :/ Thanks for taking the time to reply.

[Bug libstdc++/58030] New: Mismatched tags in std::hash friends

2013-07-30 Thread bluescarni at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: bluescarni at gmail dot com I am testing out clang in conjunction with GCC 4.8.1's libstdc++ in c++11 mode. I routinely get these warnings when compiling with -Wall and -Wextra: --- /home/yardbird/repos/piranha/src/rationa

[Bug c++/57684] [c++11] Lambda is not convertible to std::function

2013-06-23 Thread bluescarni at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57684 --- Comment #4 from Francesco Biscani --- (In reply to Jonathan Wakely from comment #3) > Yes, because std::unique_ptr has a special exception that says it can be > instantiated with incomplete types, so that should work OK (like your case > where

[Bug c++/57684] [c++11] Lambda is not convertible to std::function

2013-06-23 Thread bluescarni at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57684 --- Comment #2 from Francesco Biscani --- (In reply to Jonathan Wakely from comment #1) > I think the problem is that unordered_map requires its template arguments to > be complete at the time of instantiation, otherwise it's undefined behaviour.

[Bug c++/57684] New: [c++11] Lambda is not convertible to std::function

2013-06-23 Thread bluescarni at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bluescarni at gmail dot com Created attachment 30344 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30344&action=edit Code snippet demonstrating the problem. A specific setup with CRTP pattern and a

[Bug c++/57626] New: [C++11] ICE with template alias and member function pointer

2013-06-15 Thread bluescarni at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bluescarni at gmail dot com Created attachment 30309 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30309&action=edit Test case showing the problem The attached reduced code

[Bug c++/51884] ICE with c++11 thread and templates

2012-01-17 Thread bluescarni at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51884 --- Comment #2 from Francesco Biscani 2012-01-17 17:03:03 UTC --- Sorry, had initially uploaded the wrong code snippet, now it should be the correct one.

[Bug c++/51884] ICE with c++11 thread and templates

2012-01-17 Thread bluescarni at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51884 --- Comment #1 from Francesco Biscani 2012-01-17 17:02:16 UTC --- Created attachment 26355 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26355 Code snippet demonstrating the issue.

[Bug c++/51884] New: ICE with c++11 thread and templates

2012-01-17 Thread bluescarni at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51884 Bug #: 51884 Summary: ICE with c++11 thread and templates Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3