ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] gcc10: missing 'typename' prior to dependent type name 'iterator_traits<iterator_t<_Base>>::iterator_category'
@ 2021-07-03 17:35 Денис Назаров
  0 siblings, 0 replies; only message in thread
From: Денис Назаров @ 2021-07-03 17:35 UTC (permalink / raw)
  To: ALT Linux Team development discussions


[-- Attachment #1.1: Type: text/plain, Size: 1560 bytes --]

Здравствуйте.


После обновления в Sisyphus gcc10 до версии 10.3.1 перестал собираться 
rpcs3 с такой ошибкой:


In file included from /usr/src/RPM/BUILD/rpcs3-0.0.17/3rdparty/yaml-cpp/src/convert.cpp:1:
In file included from /usr/bin/../lib64/gcc/x86_64-alt-linux/10/../../../../include/c++/10/algorithm:64:
In file included from /usr/bin/../lib64/gcc/x86_64-alt-linux/10/../../../../include/c++/10/bits/ranges_algo.h:35:
In file included from /usr/bin/../lib64/gcc/x86_64-alt-linux/10/../../../../include/c++/10/bits/ranges_algobase.h:38:
/usr/bin/../lib64/gcc/x86_64-alt-linux/10/../../../../include/c++/10/ranges:3528:19: error: missing 'typename' prior to dependent type name 'iterator_traits<iterator_t<_Base>>::iterator_category'
             using _Cat = iterator_traits<iterator_t<_Base>>::iterator_category;
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Получается как будто ошибка в файле /usr/include/c++/10/ranges на 3528 строке.


И действительно, если в hasher данную строку заменить с

using _Cat = iterator_traits<iterator_t<_Base>>::iterator_category;

на

using _Cat = typename iterator_traits<iterator_t<_Base>>::iterator_category;

то локально всё корректно собирается и работает.


Подскажите пожалуйста, как правильно можно исправить данную ситуацию?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-03 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-03 17:35 [devel] gcc10: missing 'typename' prior to dependent type name 'iterator_traits<iterator_t<_Base>>::iterator_category' Денис Назаров

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git