: 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.
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78925
--- Comment #1 from Francesco Biscani ---
Commenting either call to bar() leads to successful compilation.
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
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.
++
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
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
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.
: 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
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
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.
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.
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
13 matches
Mail list logo