ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Денис Назаров" <nenderus@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] gcc10: missing 'typename' prior to dependent type name 'iterator_traits<iterator_t<_Base>>::iterator_category'
Date: Sat, 3 Jul 2021 20:35:28 +0300
Message-ID: <8c053df3-ae8a-0120-f3e1-7ce446255e1b@altlinux.org> (raw)


[-- 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 --]

                 reply	other threads:[~2021-07-03 17:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c053df3-ae8a-0120-f3e1-7ce446255e1b@altlinux.org \
    --to=nenderus@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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