[Bug c++/65221] typedef-name identifier not resolved in static member instantiation

2021-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65221

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |7.0
   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=69481
 Status|NEW |RESOLVED

--- Comment #4 from Andrew Pinski  ---
Fixed for GCC 7, most likely by the patch set that fixed PR 69481.

[Bug c++/65221] typedef-name identifier not resolved in static member instantiation

2021-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65221

--- Comment #3 from Andrew Pinski  ---
(In reply to Andrew Pinski from comment #2)
> Even doing this:
> template< typename A >
> struct X
> {
>   using this_type = X;
> //  typedef X this_type;
>   static this_type inst;
> };
> 
> template< typename A >
> typename X::thistype X::inst;
There is a typo here, it should have been this_type and that one always worked.


Also the original test in comment #0 seems to work in GCC 7+.

[Bug c++/65221] typedef-name identifier not resolved in static member instantiation

2016-01-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65221

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||rejects-valid
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-01-24
 Ever confirmed|0   |1
  Known to fail||6.0

--- Comment #2 from Andrew Pinski  ---
Even doing this:
template< typename A >
struct X
{
  using this_type = X;
//  typedef X this_type;
  static this_type inst;
};

template< typename A >
typename X::thistype X::inst;


Does not work.  So configrmed.

[Bug c++/65221] typedef-name identifier not resolved in static member instantiation

2015-02-26 Thread gcc-bugzilla at mail dot shgn.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65221

--- Comment #1 from Philipp Ittershagen gcc-bugzilla at mail dot shgn.de ---
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.1-19'
--with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify
--enable-plugin --with-system-zlib --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.1 (Debian 4.9.1-19)