| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Bruce Momjian <bruce(at)momjian(dot)us> |
| Cc: | kangjoni76(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 |
| Date: | 2015-10-20 16:07:00 |
| Message-ID: | 33045.1445357220@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2015-10-20 16:21:38 | Re: BUG #13690: Full Text Search with spanish dictionary cannot find some words |
| Previous Message | Bruce Momjian | 2015-10-20 14:40:43 | Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 |