[Bug c++/91119] Bogus type re-difinition error

2019-07-09 Thread me at adhokshajmishraonline dot in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91119 --- Comment #2 from Adhokshaj Mishra --- (In reply to Andrew Pinski from comment #1) > No GCC is correct. There is another section which you missed made this code > invalid but no diagnostic is required. Can you please point to the section

[Bug c++/91119] New: Bogus type re-difinition error

2019-07-09 Thread me at adhokshajmishraonline dot in
++ Assignee: unassigned at gcc dot gnu.org Reporter: me at adhokshajmishraonline dot in Target Milestone: --- Test code - class A {}; class B { using C = A; enum D { A, }; }; When the above code is compiled using g++ (g++ -c test.cpp -o test.o), the compiler

[Bug c++/85554] New: GCC does not instantiate template function when only used as a function type

2018-04-27 Thread me at adhokshajmishraonline dot in
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: me at adhokshajmishraonline dot in Target Milestone: --- Proof of concept: = template auto make_value(){ return T{}; } template auto call(F func