Displaying 20 results from an estimated 74 matches for "substatement".
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...;
Actually, gcc is wrong and VC++ got it right.
From the C++ standard, 6.4p3:
> A name introduced by a declaration in a condition (either introduced
> by the type-specifier-seq or the declarator of the
> condition) is in scope from its point of declaration until the end of
> the substatements controlled by the condition. If the
> name is re-declared in the outermost block of a substatement
> controlled by the condition, the declaration that re-declares
> the name is ill-formed.
Which gives us:
while (int x=0) {
int x=0; // error: redeclaration, clashes with condition...
2007 Apr 23
2
Documentation for namespaces
Brian Ripley recently replied to a comment of mine by referring to
a function 'assignInNamespace', which I had not heard of.
Is there a good write up on name spaces in R? There are little tidbits
in the manuals on the R site, but I found nothing substative. I'd like
to understand these better.
Terry Therneau
2008 Oct 02
3
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
gcc is correct. According to the ISO specification, the for-init-statement
is supposed to inject any variable names into the same declarative scope as
the condition of an equivalent restructuring of the loop in the form of a
while statement, which in turn fronts the declaration to an extra scope that
surrounds the /entire/ loop construct. VC++ seems to be scoping the
variables as if they were
2005 Dec 22
1
strsplit with dataframes
Hello fellow R people,
I can not figure out a pretty way to use strplit with vectors
Imagine that I got the following data from someone with ID's
representing several factors
ID data
A1-B1-t1 0
A1-B1-t2 1
A1-B2-t1 5
A1-B2-t2 10
A1-B10-t1 0
A1-B10-t2 1
A1-B20-t1 5
A1-B20-t2 10
...
I would like to turn this dataframe to
station substation time data
A1 B1 t1 0
A1 B1 t2 1
A1 B2 t1 5
2004 Aug 06
0
Asterisk, channel banks and SDH
hi,
I need some feedback on an asterisk installation my company is planning
to supply. Here's the basic structure:
PSTN -> Asterisk -> Channel Bank -> SDH --- fiber --- SDH -> analog
extension
Some additional info:
1) Fiber connects the main exchange with 8 other substations, with an
average distance of 13 or so kilometers between each station.
2) Channel bank needs to connect
2008 Oct 02
2
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...wrong and VC++ got it right.
> From the C++ standard, 6.4p3:
>
>> A name introduced by a declaration in a condition (either introduced
>> by the type-specifier-seq or the declarator of the
>> condition) is in scope from its point of declaration until the end of
>> the substatements controlled by the condition. If the
>> name is re-declared in the outermost block of a substatement
>> controlled by the condition, the declaration that re-declares
>> the name is ill-formed.
>
> Which gives us:
>
> while (int x=0) {
> int x=0; // error: redec...
2008 Oct 02
1
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...g and VC++ got it right.
> From the C++ standard, 6.4p3:
>
> > A name introduced by a declaration in a condition (either introduced
> > by the type-specifier-seq or the declarator of the
> > condition) is in scope from its point of declaration until the end of
> > the substatements controlled by the condition. If the
> > name is re-declared in the outermost block of a substatement
> > controlled by the condition, the declaration that re-declares
> > the name is ill-formed.
>
> Which gives us:
>
> while (int x=0) {
> int x=0; // error: re...
2008 Oct 02
3
[LLVMdev] MS C++ gives error C2371 on this code while (obviously) gcc compiles it fine
Taken from tools/llvmc2/CompilationGraph.cpp:
...
for (typename C::const_iterator B = EdgesContainer.begin(),
E = EdgesContainer.end(); B != E; ++B) {
const Edge* E = B->getPtr();
...
MS C++ compiler (VS 2008) gives:
...
CompilationGraph.cpp
..\..\..\llvm\tools\llvmc2\CompilationGraph.cpp(58) : error C2371:
'E' : redefinition; different basic types
2013 Aug 29
7
[PATCH 0/3] x86: mwait_idle improvements ported from Linux
1: x86/mwait_idle: remove assumption of one C-state per MWAIT flag
2: x86/mwait_idle: export both C1 and C1E
3: x86/mwait_idle: initial C8, C9, C10 support
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
2006 Apr 24
5
''xm list'' states
Hi,
can someone explain the states shown by the ''xm list'' command?
''r'' (running) - The domain is currently running.
- This flag is always shown for the Domain 0, but never for
unprivileged domains, why?
''b'' (blocked) - The domain is blocked.
- What does that mean? Why should a domain be blocked?
''p'' (paused) - The domain
2016 Jun 27
0
unexpected shutdown, had to reinstall xorg.server
Greetings all;
I expect that I may not have the shutdown properly configured, but my
site was subjected to some bad weather related intermittent power losses
a week+ back, and I have an automatic standby plant, a 20kw, that usuall
fires up and has the lights back on in 7 or 8 seconds. So while the
power folks were reclosing substation breakers to see where the next
tree limb was shorting
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...> They almost are, but the rules for while statements actually force the
> declaration outside of the condition of the if statement.
>
Again, see the 6.4p2 reference. 'while' statements should also follow
this rule:
> If the name is re-declared in the outermost block of a substatement
> controlled by the condition, the declaration that re-declares the name
> is ill-formed.
gcc correctly scopes the declaration inside the while statement:
while (int x=0) {
int x=0; // error: redeclaration.
}
-Argiris
> You are correct, though, that gcc should be emitting an er...
2018 Aug 24
2
Rewriting Intel PCI bridge prefetch base address bits solves nvidia graphics issues
Hi,
We are facing a suspend/resume problem with many different Asus laptop
models (30+ products) with Intel chipsets (multiple generations) and
nvidia GPUs (several different ones). Reproducers include:
1. Boot
2. Suspend/resume
3. Load nouveau driver
4. Start X
5. Observe slow X startup and many many errors in logs (primarily
nouveau fifo faults)
or
1. Boot
2. Load nouveau driver
3. Start X
2018 May 09
1
[Bug 106454] New: Xorg crashes with nouveau on lenovo y50 (nvidia GTX 860M) (freezes with proprietary drivers)
https://bugs.freedesktop.org/show_bug.cgi?id=106454
Bug ID: 106454
Summary: Xorg crashes with nouveau on lenovo y50 (nvidia GTX
860M) (freezes with proprietary drivers)
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
2004 Jan 09
0
SIP/2.0 487 Request Cancelled
Here's my sip debug output. anybody knows why Cisco sent * is CANCEL msg? Can someone tell me what ATA version are they using? Maybe this is also another issue.. I am using v2.16.
This is using G711ulaw.
Sip read: >
SIP/2.0 100 Trying
Via: SIP/2.0/UDP asterisk:5060;branch=z9hG4bK13fbce3e
From: "Jess" <sip:6882332@mydomain.com>;tag=as6818ebfb
To:
2016 Jun 27
2
unexpected shutdown, had to reinstall xorg.server
Greetings all;
I expect that I may not have the shutdown properly configured, but my
site was subjected to some bad weather related intermittent power losses
a week+ back, and I have an automatic standby plant, a 20kw, that usuall
fires up and has the lights back on in 7 or 8 seconds. So while the
power folks were reclosing substation breakers to see where the next
tree limb was shorting
2004 Aug 29
2
Mix Data and SIP Phones
I?m looking to install a couple of SIP phones into a small/medium company.
The easiest way would be to simply add the phones on the LAN network. But
what would happened if someone make a huge file transfer: will it make trouble
on the Sip connections ? I think so, that?s why I?m asking you if there
is a good (better) way? Maybe connect SIP phones on a separate network and
setup a linux box as
2017 Aug 04
2
What RH-like on a Dell XPS 15 (9590)?
Hello Andy,
On Fri, 04 Aug 2017 14:55:33 +0200 Andreas Benzler <andreas at benzlerweb.de> wrote:
> If you wanne use the opensource version from nvidia can test
> my private driver stack
>
> [cms4all-kernel]
> name=cms4all-kernel
> baseurl=http://centos.cms4all.org/repo/7/kernel/
> #baseurl=file:///srv/repo/centos/7/kernel
> gpgcheck=0
> enabled=1
>
>
2015 Aug 18
2
Need the date included in nuts -wall msgs.
Greetings all;
Is it possible to set a logging option in one of the config files so that
when we have a 1 second power bump, the date is included, both in the
log, and in the -wall broadcast?
We apparently have a substation regulator in the process of failing, and
the recycle isn't normally slow enough to reset the clocks, but it
killing one of my computers w/o actually causing a reboot.
2018 Aug 24
0
Rewriting Intel PCI bridge prefetch base address bits solves nvidia graphics issues
Hi Daniel,
On Fri, Aug 24, 2018 at 11:31:54AM +0800, Daniel Drake wrote:
> Hi,
>
> We are facing a suspend/resume problem with many different Asus laptop
> models (30+ products) with Intel chipsets (multiple generations) and
> nvidia GPUs (several different ones). Reproducers include:
Are these systems also affected through runtime power management? For
example:
modprobe