Bruce Momjian <bruce(at)momjian(dot)us> writes:
> On Tue, Oct 20, 2015 at 04:37:37AM +0000, kangjoni76(at)gmail(dot)com wrote:
>> Invalid conversion ForkNumber to int...
>> error build failed ForkNumber type doesn't have operator++.
>> This happen in src/common/relpath.c:52 and also at line 86.
> Wow, we are incrementing an enum here. Is that legal? What compiler
> are you using?
Possibly C++ doesn't allow that? But if so, it's user error.
Postgres is written in C not C++.
(I could see a compiler issuing a warning here that forkNum will
get incremented past the declared range of the enum. But that
doesn't seem to be what's being reported.)
regards, tom lane