[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60471] clang-12 error: unknown type name 'siz
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #60471] clang-12 error: unknown type name 'size_t' |
Date: |
Wed, 28 Apr 2021 20:50:31 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?60471>
Summary: clang-12 error: unknown type name 'size_t'
Project: GNU Octave
Submitted by: dasergatskov
Submitted on: Thu 29 Apr 2021 12:50:29 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
clang-12 wants std::size_t instead of size_t in action-container.cc
and action-container.h
If I change as it suggests, code compiles.
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I.. -DOCTAVE_DLL
-DEXTERNAL_DLL -Iliboctave -I../liboctave -I../liboctave/array
-Iliboctave/numeric -I../liboctave/numeric -Iliboctave/operators
-I../liboctave/operators -I../liboctave/system -I../liboctave/util
-I../liboctave/wrappers -fPIC -pthread -fopenmp -Wall -W -Wshadow
-Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -fvisibility=hidden -g -O2 -MT
liboctave/util/libutil_la-action-container.lo -MD -MP -MF
liboctave/util/.deps/libutil_la-action-container.Tpo -c
../liboctave/util/action-container.cc -fPIC -DPIC -o
liboctave/util/.libs/libutil_la-action-container.o
In file included from ../liboctave/util/action-container.cc:30:
../liboctave/util/action-container.h:199:26: error: unknown type name
'size_t'; did you mean 'std::size_t'?
OCTAVE_API void run (size_t num);
^~~~~~
std::size_t
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux/bits/c++config.h:2427:26:
note: 'std::size_t' declared here
typedef __SIZE_TYPE__ size_t;
^
In file included from ../liboctave/util/action-container.cc:30:
../liboctave/util/action-container.h:205:19: error: unknown type name
'size_t'; did you mean 'std::size_t'?
void discard (size_t num)
^~~~~~
std::size_t
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux/bits/c++config.h:2427:26:
note: 'std::size_t' declared here
typedef __SIZE_TYPE__ size_t;
^
In file included from ../liboctave/util/action-container.cc:30:
../liboctave/util/action-container.h:216:13: error: unknown type name
'size_t'; did you mean 'std::size_t'?
virtual size_t size (void) const = 0;
^~~~~~
std::size_t
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux/bits/c++config.h:2427:26:
note: 'std::size_t' declared here
typedef __SIZE_TYPE__ size_t;
^
In file included from ../liboctave/util/action-container.cc:30:
../liboctave/util/action-container.h:210:12: error: unknown type name
'size_t'; did you mean 'std::size_t'?
for (size_t i = 0; i < num; i++)
^~~~~~
std::size_t
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux/bits/c++config.h:2427:26:
note: 'std::size_t' declared here
typedef __SIZE_TYPE__ size_t;
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60471>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60471] clang-12 error: unknown type name 'size_t',
Dmitri A. Sergatskov <=