* [sisyphus] Ошибка в компиляции программы на Фортране.
@ 2019-10-11 13:28 Sergei Epiphanov
0 siblings, 0 replies; only message in thread
From: Sergei Epiphanov @ 2019-10-11 13:28 UTC (permalink / raw)
To: sisyphus
Тестовый модуль test.f90:
MODULE TEST
USE ISO_C_BINDING
INTEGER(C_INT),BIND(C,NAME="_TEST1") :: VAR1
INTEGER(C_INT),BIND(C,NAME="_test1") :: VAR2
END MODULE TEST
Собираю командой
gfortran -c -ffree-form -ffree-line-length-none -o test.o test.f90
Полгода назад модуль собирался без ошибок, сегодня же выдаёт, что
переменные var1 и var2 имеют одно и то же глобальное имя "_test1". То есть
компилятор почему-то имена для языка C стал приводить к нижнему регистру. В
доках на gfortran написано, что C-имена чувствительны к регистру. В
багзилле gcc подобные сообщения значатся для версии 4.3.0, а у меня
8.3.1-alt5 от 20190507. У нас какая-то регрессия объявилась?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-11 13:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 13:28 [sisyphus] Ошибка в компиляции программы на Фортране Sergei Epiphanov
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git